feat(projects): automate project infrastructure provisioning
This commit is contained in:
@@ -39,7 +39,9 @@ def test_read_inp_refreshes_after_committed_replace_when_cleanup_fails(
|
||||
monkeypatch.setattr(
|
||||
importer,
|
||||
"copy_project",
|
||||
lambda _source, _target: events.append("copy"),
|
||||
lambda source, _target, **kwargs: events.append(
|
||||
f"copy:{source}:{kwargs.get('allow_template_source')}"
|
||||
),
|
||||
)
|
||||
monkeypatch.setattr(importer, "project_transaction", fake_transaction)
|
||||
monkeypatch.setattr(
|
||||
@@ -63,4 +65,10 @@ def test_read_inp_refreshes_after_committed_replace_when_cleanup_fails(
|
||||
)
|
||||
|
||||
assert importer.read_inp("project_a", "model.inp") is True
|
||||
assert events == ["copy", "parse", "replace", "cleanup-failed", "refresh"]
|
||||
assert events == [
|
||||
"copy:tjwater_v2_schema_template:True",
|
||||
"parse",
|
||||
"replace",
|
||||
"cleanup-failed",
|
||||
"refresh",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user