Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_imports():
from pyforest import os, pd, Path, active_imports
os.name
assert "import os" in active_imports()
df = pd.DataFrame()
assert "import pandas as pd" in active_imports()
Path(".")
assert "from pathlib import Path" in active_imports()
def test_complementary_import():
from pyforest import pd, active_imports
df = pd.DataFrame()
assert "import pandas_profiling" in active_imports()