Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbatten5 committed Oct 18, 2023
1 parent 8e96376 commit e090d25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ ignore = [
'D413',
'DTZ007',
'E501',
'PT012',
'S113',
]
line-length = 80
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/test_phylm.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_repr(self) -> None:
assert str(phylm) == "<class 'Phylm' title:'foo'>"


@pytest.mark.asyncio
@pytest.mark.asyncio()
class TestLoadSource:
"""Tests for the `load_source` method."""

Expand Down Expand Up @@ -227,7 +227,7 @@ async def test_recognized_source_tmdb_with_movie_id_instance_variable(self) -> N
raw_title="foo", movie_id="abc", raw_year=None
)

@pytest.mark.parametrize("source_class", ("Rt", "Mtc", "Imdb", "Tmdb"))
@pytest.mark.parametrize("source_class", ["Rt", "Mtc", "Imdb", "Tmdb"])
async def test_source_already_loaded(self, source_class: str) -> None:
"""
Given phylm instance with a source already loaded,
Expand All @@ -244,7 +244,7 @@ async def test_source_already_loaded(self, source_class: str) -> None:

assert mock_source.call_count == 1

@pytest.mark.parametrize("source_class", ("Rt", "Mtc", "Tmdb"))
@pytest.mark.parametrize("source_class", ["Rt", "Mtc", "Tmdb"])
async def test_with_given_session(self, source_class: str) -> None:
"""
Given phylm instance,
Expand All @@ -262,7 +262,7 @@ async def test_with_given_session(self, source_class: str) -> None:
mock_source.return_value.load_source.assert_called_once_with(session=session)


@pytest.mark.asyncio
@pytest.mark.asyncio()
class TestLoadSources:
"""Tests for the `load_sources` method."""

Expand Down

0 comments on commit e090d25

Please sign in to comment.