Skip to content

Commit

Permalink
add diff marker to be able to run all unit tests except the diff util…
Browse files Browse the repository at this point in the history
…ity tests that have additional dependencies that may not be available on all systems
  • Loading branch information
georgemccabe committed Jul 18, 2023
1 parent 59de5c9 commit 0982a55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/tests/pytests/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ markers =
wrapper: custom marker for testing metplus/wrapper logic - all others
long: custom marker for tests that take a long time to run
plotting: custom marker for tests that involve plotting
diff: custom marker for diff util tests that require additional packages
3 changes: 2 additions & 1 deletion internal/tests/pytests/util/diff_util/test_diff_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
csv_val_1 = 'Mackenzie, Stu, 0.9999'
csv_val_2 = 'Kenny-Smith, Ambrose, 0.8977'


def create_diff_files(files_a, files_b):
unique_id = str(uuid.uuid4())[0:8]
dir_a = os.path.join(test_output_dir, f'diff_{unique_id}', 'a')
Expand Down Expand Up @@ -135,7 +136,7 @@ def write_test_files(dirname, files):
None, False),
]
)
@pytest.mark.util
@pytest.mark.diff
def test_diff_dir_text_files(a_files, b_files, rounding_override, expected_is_equal):
if rounding_override:
for filename in a_files:
Expand Down

0 comments on commit 0982a55

Please sign in to comment.