-
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
11 additions
and
13 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
"""Test the geneset.shared_with_user query function.""" | ||
|
||
|
||
import pytest | ||
from geneweaver.db.query.geneset.read import shared_with_user | ||
|
||
|
||
def test_shared_with_user_raises_not_implemented(): | ||
"""Test that the shared_with_user function raises a NotImplementedError.""" | ||
with pytest.raises(NotImplementedError): | ||
_ = shared_with_user(user_id=1) |
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 @@ | ||
"""Tests for the project query module.""" |
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,15 +1,10 @@ | ||
"""Test the project.add query generation function.""" | ||
|
||
|
||
import pytest | ||
from geneweaver.db.query.project import add | ||
|
||
|
||
def test_add_raise_not_implemented(): | ||
"""Test that the add function raises a NotImplementedError.""" | ||
with pytest.raises(NotImplementedError): | ||
_ = add( | ||
user_id=1, | ||
name='test', | ||
notes='notes', | ||
starred=True | ||
) | ||
_ = add(user_id=1, name="test", notes="notes", starred=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,18 +1,18 @@ | ||
"""Test the project.get query generation function.""" | ||
|
||
|
||
import pytest | ||
from geneweaver.db.query.project import get | ||
|
||
|
||
def test_get_raise_not_implemented(): | ||
"""Test that the get function raises a NotImplementedError.""" | ||
with pytest.raises(NotImplementedError): | ||
_ = get( | ||
project_id=1, | ||
owner_id=1, | ||
name='test', | ||
name="test", | ||
starred=True, | ||
search_text='search', | ||
search_text="search", | ||
limit=1, | ||
offset=10, | ||
) |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
"""Test the publication.get query function.""" | ||
import pytest | ||
|
||
import pytest | ||
from geneweaver.db.query.publication import get | ||
|
||
|
||
def test_get_raises_not_implemented(): | ||
"""Test that the get function raises a NotImplementedError.""" | ||
with pytest.raises(NotImplementedError): | ||
_ = get() |