Flows and dashboards get ids: the store is addressed by id with a key index, the first start gives every document its key as id, fluksio store migrate --dry-run and ls; the rename routes are gone
This commit is contained in:
@@ -110,17 +110,11 @@ def test_a_new_dashboard_is_a_draft_until_it_is_published(store: DashboardStore)
|
||||
assert store.read("house").title == created.title
|
||||
|
||||
|
||||
def test_an_unpublished_dashboard_can_be_renamed_and_deleted(store: DashboardStore):
|
||||
"""And renaming it does not put it on a wall either."""
|
||||
def test_an_unpublished_dashboard_can_be_deleted(store: DashboardStore):
|
||||
store.write_draft(default_dashboard("house"), 0)
|
||||
|
||||
store.rename("house", "home")
|
||||
|
||||
store.delete("house")
|
||||
assert not store.exists("house")
|
||||
assert store.has_draft("home") and not store.is_published("home")
|
||||
|
||||
store.delete("home")
|
||||
assert not store.exists("home")
|
||||
|
||||
|
||||
def test_a_duplicate_is_an_unpublished_copy_of_the_working_copy(
|
||||
@@ -139,16 +133,12 @@ def test_a_duplicate_is_an_unpublished_copy_of_the_working_copy(
|
||||
assert store.duplicate("house").name == "house_copy_2"
|
||||
|
||||
|
||||
def test_deleting_and_renaming(store: DashboardStore):
|
||||
def test_deleting(store: DashboardStore):
|
||||
store.write(default_dashboard("house"))
|
||||
|
||||
renamed = store.rename("house", "home")
|
||||
assert renamed.name == "home"
|
||||
assert not store.exists("house")
|
||||
|
||||
store.delete("home")
|
||||
store.delete("house")
|
||||
with pytest.raises(DashboardNotFound):
|
||||
store.read("home")
|
||||
store.read("house")
|
||||
|
||||
|
||||
def test_the_deepest_chart_decides_how_much_past_is_kept(store: DashboardStore):
|
||||
|
||||
Reference in New Issue
Block a user