Skip to content

Commit

Permalink
Drop unnecessary test fixtures
Browse files Browse the repository at this point in the history
Signed-off-by: Anuradha Karuppiah <[email protected]>
  • Loading branch information
AnuradhaKaruppiah committed Oct 20, 2024
1 parent 3a118f6 commit 59f01f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/scripts/test_namespace_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def test_dfp_namespace_update(tmp_path):
module_name = 'dfp_old_namespace_data'
module_path = os.path.join(scripts_data_dir, f'{module_name}.py')

# check if the file exists in the tmp_path
assert os.path.exists(module_path), f"Failed to copy {module_name} to {scripts_data_dir}"

# dfp imports expected to fail before namespace update
spec, module = import_module_from_path(module_name, module_path)
assert module is not None, f"Failed to import {module_name} from {module_path}"
Expand Down Expand Up @@ -86,6 +89,9 @@ def test_llm_namespace_update(tmp_path):
module_name = 'llm_old_namespace_data'
module_path = os.path.join(scripts_data_dir, f'{module_name}.py')

# check if the file exists in the tmp_path
assert os.path.exists(module_path), f"Failed to copy {module_name} to {scripts_data_dir}"

# llm imports expected to fail before namespace update
spec, module = import_module_from_path(module_name, module_path)
assert module is not None, f"Failed to import {module_name} from {module_path}"
Expand Down

0 comments on commit 59f01f8

Please sign in to comment.