Skip to content

Commit

Permalink
switch tests to revert diff
Browse files Browse the repository at this point in the history
  • Loading branch information
MarieS-WiMLDS committed Jan 30, 2025
1 parent fae2cb2 commit 9c06bda
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions skore/tests/integration/ui/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,26 +429,6 @@ def test_get_items_with_pickle_item(
}


def test_set_note(client, in_memory_project):
for i in range(3):
in_memory_project.put("notted", i)

for i in range(3):
response = client.put(
"/api/project/note",
json={
"key": "notted",
"message": f"note{i}",
"version": i,
},
)
assert response.status_code == 201

for i in range(3):
note = in_memory_project.get_note("notted", version=i)
assert note == f"note{i}"


def test_get_items_with_pickle_item_and_unpickling_error(
monkeypatch,
MockDatetime,
Expand Down Expand Up @@ -487,3 +467,23 @@ def test_get_items_with_pickle_item_and_unpickling_error(
],
},
}


def test_set_note(client, in_memory_project):
for i in range(3):
in_memory_project.put("notted", i)

for i in range(3):
response = client.put(
"/api/project/note",
json={
"key": "notted",
"message": f"note{i}",
"version": i,
},
)
assert response.status_code == 201

for i in range(3):
note = in_memory_project.get_note("notted", version=i)
assert note == f"note{i}"

0 comments on commit 9c06bda

Please sign in to comment.