Format according to the black standard
This commit is contained in:
@@ -8,13 +8,16 @@ import pytest
|
||||
from bdfr.configuration import Configuration
|
||||
|
||||
|
||||
@pytest.mark.parametrize('arg_dict', (
|
||||
{'directory': 'test_dir'},
|
||||
{
|
||||
'directory': 'test_dir',
|
||||
'no_dupes': True,
|
||||
},
|
||||
))
|
||||
@pytest.mark.parametrize(
|
||||
"arg_dict",
|
||||
(
|
||||
{"directory": "test_dir"},
|
||||
{
|
||||
"directory": "test_dir",
|
||||
"no_dupes": True,
|
||||
},
|
||||
),
|
||||
)
|
||||
def test_process_click_context(arg_dict: dict):
|
||||
test_config = Configuration()
|
||||
test_context = MagicMock()
|
||||
@@ -25,9 +28,9 @@ def test_process_click_context(arg_dict: dict):
|
||||
|
||||
|
||||
def test_yaml_file_read():
|
||||
file = './tests/yaml_test_configuration.yaml'
|
||||
file = "./tests/yaml_test_configuration.yaml"
|
||||
test_config = Configuration()
|
||||
test_config.parse_yaml_options(file)
|
||||
assert test_config.subreddit == ['EarthPorn', 'TwoXChromosomes', 'Mindustry']
|
||||
assert test_config.sort == 'new'
|
||||
assert test_config.subreddit == ["EarthPorn", "TwoXChromosomes", "Mindustry"]
|
||||
assert test_config.sort == "new"
|
||||
assert test_config.limit == 10
|
||||
|
||||
Reference in New Issue
Block a user