Skip to content

Commit

Permalink
fix(test_path_manager): Add import statement to pass build tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcooper committed May 6, 2024
1 parent ca8c871 commit ab14624
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions tests/test_path_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
from pathlib import Path
from pyflowline.configuration import path_manager as pyflowline_path_manager

try:
import pyflowline
from pyflowline.configuration import path_manager as pyflowline_path_manager
except:
pass

def test_root_path_from_pyflowline_project_root():
"""Test the dynamic root path identification using both setup.py and pkg_resources."""
Expand Down Expand Up @@ -34,9 +39,15 @@ def test_root_path_from_path_manager_location():
print('Root path is correctly identified from path_manager location.')

def test_path_manager():
test_root_path_from_pyflowline_project_root()
test_root_path_from_pyflowline_package_root()
test_root_path_from_setup_file()
test_root_path_from_path_manager_location()

try:
import pyflowline
from pyflowline.configuration import path_manager as pyflowline_path_manager
test_root_path_from_pyflowline_project_root()
test_root_path_from_pyflowline_package_root()
test_root_path_from_setup_file()
test_root_path_from_path_manager_location()
except:
pass

test_path_manager()

0 comments on commit ab14624

Please sign in to comment.