Connor Sutton
commited on
Commit
•
6e652a3
1
Parent(s):
c1ea3ba
better variable naming
Browse files
tests/test_conversions.py
CHANGED
@@ -12,8 +12,8 @@ def test_coversion(in_ext: str, out_ext: str) -> None:
|
|
12 |
test_file = f"test.{in_ext}"
|
13 |
test_file_path = os.path.join(os.getcwd(), "tests", "test_data", test_file)
|
14 |
with open(test_file_path, "rb") as f:
|
15 |
-
|
16 |
out_file = f"test.{output_format_dict[out_ext][0]}"
|
17 |
-
converted_data = convert(
|
18 |
with open("test.kml", "wb") as f:
|
19 |
f.write(converted_data)
|
|
|
12 |
test_file = f"test.{in_ext}"
|
13 |
test_file_path = os.path.join(os.getcwd(), "tests", "test_data", test_file)
|
14 |
with open(test_file_path, "rb") as f:
|
15 |
+
in_file = read_file(f)
|
16 |
out_file = f"test.{output_format_dict[out_ext][0]}"
|
17 |
+
converted_data = convert(in_file, out_file, out_ext)
|
18 |
with open("test.kml", "wb") as f:
|
19 |
f.write(converted_data)
|