Skip to content

Commit

Permalink
Fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bergsalex committed Apr 22, 2024
1 parent da49bf8 commit 13a664c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/geneweaver/db/query/project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Query generation functions for projects."""

from typing import Optional, Tuple

from psycopg.sql import Composed


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/query/geneset/test_shared_with_user.py
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)
1 change: 1 addition & 0 deletions tests/unit/query/project/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Tests for the project query module."""
9 changes: 2 additions & 7 deletions tests/unit/query/project/test_add.py
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)
6 changes: 3 additions & 3 deletions tests/unit/query/project/test_get.py
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,
)
2 changes: 1 addition & 1 deletion tests/unit/query/project/test_shared_with_user.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Test the project.shared_with_user query generation function."""


import pytest
from geneweaver.db.query.project import shared_with_user


def test_shared_with_user_raise_not_implemented():
"""Test that the shared_with_user function raises a NotImplementedError."""
with pytest.raises(NotImplementedError):
_ = shared_with_user(
user_id=1,
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/query/publication/test_get.py
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()

0 comments on commit 13a664c

Please sign in to comment.