Skip to content
Snippets Groups Projects
Unverified Commit 835e98d9 authored by juga's avatar juga Committed by GitHub
Browse files

Merge pull request #258 from juga0/ticket27342_test_args

Ticket27342 test args
parents b6c480eb 1447b227
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Broken environment variable in default sbws config. To use envvar $FOO, write
$$FOO in the config.
- Stop using directory as argument in integration tests (#27342)
### Changed
......
......@@ -50,9 +50,16 @@ def sbwshome_dir(sbwshome_empty):
@pytest.fixture(scope='session')
def args(sbwshome_dir, parser):
def test_config_path(tmpdir):
""""""
config = tmpdir.join('.sbws.ini')
return config
@pytest.fixture(scope='session')
def args(sbwshome_empty, parser, test_config_path):
"""Args with sbws home in the tests tmp dir."""
args = _PseudoArguments(directory=sbwshome_dir, output=sbwshome_dir,
args = _PseudoArguments(config=test_config_path, output=sbwshome_empty,
scale=False, log_level='debug')
return args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment