-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mob next [ci-skip] [ci skip] [skip ci]
lastFile:tests/unit/test_project.py
- Loading branch information
Showing
2 changed files
with
30 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from pandas import DataFrame | ||
from skore.project import Project | ||
|
||
|
||
def test_json_item(): | ||
project = Project() | ||
d = {"a": 1, "b": 2} | ||
project.put("test", d) | ||
assert project.get("test") == d | ||
|
||
|
||
def test_dataframe_item(): | ||
project = Project() | ||
df = DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]}) | ||
project.put("pandas", df) | ||
assert project.get("pandas") == df |