mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-11-04 15:53:41 +00:00
chore: add metthod definition order plugin to pylint
Also reorder some methods to fix errors
This commit is contained in:
@ -3,6 +3,14 @@ import pytest
|
||||
from ahriman.models.repository_id import RepositoryId
|
||||
|
||||
|
||||
def test_id() -> None:
|
||||
"""
|
||||
must correctly generate id
|
||||
"""
|
||||
assert RepositoryId("", "").id == ""
|
||||
assert RepositoryId("arch", "repo").id == "arch-repo"
|
||||
|
||||
|
||||
def test_is_empty() -> None:
|
||||
"""
|
||||
must check if repository id is empty or not
|
||||
@ -13,14 +21,6 @@ def test_is_empty() -> None:
|
||||
assert not RepositoryId("arch", "repo").is_empty
|
||||
|
||||
|
||||
def test_id() -> None:
|
||||
"""
|
||||
must correctly generate id
|
||||
"""
|
||||
assert RepositoryId("", "").id == ""
|
||||
assert RepositoryId("arch", "repo").id == "arch-repo"
|
||||
|
||||
|
||||
def test_query() -> None:
|
||||
"""
|
||||
must generate query request parameters
|
||||
|
||||
Reference in New Issue
Block a user