Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Sheni committed Mar 23, 2022
1 parent bdc2143 commit 8bb5c73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion minimum_dependency_generator/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def cfg_str(dask_dep, pandas_dep, woodwork_dep, numpy_lower, ploty_dep, numpy_up
'''
return setup_cfg_str


@pytest.fixture(scope="session", autouse=True)
def toml_cfg(pandas_dep, woodwork_dep, numpy_upper, ploty_dep, p_ytest_dep, dask_dep, numpy_lower):
pyproject_str = f'''\
Expand All @@ -91,4 +92,3 @@ def toml_cfg(pandas_dep, woodwork_dep, numpy_upper, ploty_dep, p_ytest_dep, dask
]
'''
return pyproject_str

4 changes: 3 additions & 1 deletion minimum_dependency_generator/tests/test_cfg_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

from ..minimum_dependency_generator import generate_min_requirements


@pytest.mark.parametrize(
"file_prefix,file_extension,options",
[('setup', 'cfg', 'install_requires' ), ('pyproject', 'toml', 'dependencies')],
[('setup', 'cfg', 'install_requires'), ('pyproject', 'toml', 'dependencies')],
)
def test_with_toml_cfg(
file_prefix, file_extension, options, cfg_str, toml_cfg
Expand All @@ -26,6 +27,7 @@ def test_with_toml_cfg(
min_requirements = generate_min_requirements(paths, options, extra_requires)
verify_min_reqs_cfg_toml(min_requirements)


def verify_min_reqs_cfg_toml(min_requirements):
assert '-r' not in min_requirements
assert '.txt' not in min_requirements
Expand Down

0 comments on commit 8bb5c73

Please sign in to comment.