mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -23,12 +23,6 @@ def service_dir(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> Path:
|
||||
return tmp_path
|
||||
|
||||
|
||||
def test_an_empty_config_yaml_takes_the_user_block(monkeypatch: pytest.MonkeyPatch, service_dir: Path) -> None:
|
||||
(service_dir / config.filenames.config).write_text("")
|
||||
monkeypatch.setattr(config, "services", {"EXAMPLE": {"region": "us"}})
|
||||
assert launch.load_service_config("EXAMPLE") == {"region": "us"}
|
||||
|
||||
|
||||
def test_a_user_block_matches_the_tag_in_any_case(monkeypatch: pytest.MonkeyPatch, service_dir: Path) -> None:
|
||||
(service_dir / config.filenames.config).write_text("region: gb\nendpoints:\n api: a\n")
|
||||
monkeypatch.setattr(config, "services", {"example": {"region": "us"}})
|
||||
|
||||
Reference in New Issue
Block a user