Example #1
0
def test_load(requirements_path: Path):
    config = Config()
    config.attach_file(path=str(requirements_path / 'dephell.toml'),
                       env='some_env')
    assert config['from']['format'] == 'pip'
Example #2
0
def test_load():
    config = Config()
    config.attach_file(path=str(Path('tests') / 'requirements' / 'dephell.toml'), env='some_env')
    assert config['from']['format'] == 'pip'
Example #3
0
def test_load():
    config = Config()
    config.attach_file(path='./tests/requirements/dephell.toml',
                       env='some_env')
    assert config['from']['format'] == 'pip'