-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
40 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ authors = [{name = "Lamin Labs", email = "[email protected]"}] | |
readme = "README.md" | ||
dynamic = ["version", "description"] | ||
dependencies = [ | ||
"lamindb", | ||
"lamindb[bionty]", | ||
] | ||
|
||
[project.urls] | ||
|
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,9 @@ | ||
import lamindb_setup as ln_setup | ||
import pytest | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def setup_instance(): | ||
ln_setup.init(storage="./testdb", modules="bionty") | ||
yield | ||
ln_setup.delete("testdb", force=True) |
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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
from tmp_testing_demo import ExampleClass, example_function | ||
import numpy as np | ||
import pandas as pd | ||
|
||
|
||
def test_dummy(): | ||
assert example_function("A") == "a" | ||
ex = ExampleClass(1) | ||
assert ex.bar() == "hello" | ||
def test_that_uses_instance(setup_instance): | ||
import lamindb as ln | ||
|
||
df = pd.DataFrame({"a": np.arange(0, 10)}) | ||
|
||
af = ln.Artifact.from_df(df, description="test").save() | ||
|
||
# clean up artifacts and stuff that might have side effects | ||
# generally, be careful with concurrency and try not to write | ||
# tests that depend on others | ||
af.delete() |
Empty file.
Empty file.