mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
Black tests and setup.py (#1657)
This commit is contained in:
@@ -15,13 +15,13 @@ def cleanup_datamanager():
|
||||
@pytest.fixture()
|
||||
def data_mgr_config(tmpdir):
|
||||
default = data_manager.basic_config_default.copy()
|
||||
default['BASE_DIR'] = str(tmpdir)
|
||||
default["BASE_DIR"] = str(tmpdir)
|
||||
return default
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def cog_instance():
|
||||
thing = type('CogTest', (object, ), {})
|
||||
thing = type("CogTest", (object,), {})
|
||||
return thing()
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ def test_no_basic(cog_instance):
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_core_path(data_mgr_config, tmpdir):
|
||||
conf_path = tmpdir.join('config.json')
|
||||
conf_path = tmpdir.join("config.json")
|
||||
conf_path.write(json.dumps(data_mgr_config))
|
||||
|
||||
data_manager.load_basic_configuration(Path(str(conf_path)))
|
||||
|
||||
assert data_manager.core_data_path().parent == Path(data_mgr_config['BASE_DIR'])
|
||||
assert data_manager.core_data_path().parent == Path(data_mgr_config["BASE_DIR"])
|
||||
|
||||
Reference in New Issue
Block a user