コード例 #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'
コード例 #2
0
ファイル: test_config.py プロジェクト: wlmgithub/dephell
def test_load():
    config = Config()
    config.attach_file(path=str(Path('tests') / 'requirements' / 'dephell.toml'), env='some_env')
    assert config['from']['format'] == 'pip'
コード例 #3
0
def test_load():
    config = Config()
    config.attach_file(path='./tests/requirements/dephell.toml',
                       env='some_env')
    assert config['from']['format'] == 'pip'