Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
da-maltsev committed Jul 6, 2023
1 parent 6d52af9 commit 7eb6813
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions tests/tests_filters/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


@pytest.fixture
def do_filter(filter_obg) -> Callable[[], bool]:
return lambda message: filter_obg.filter(message)
def do_filter(filter_obj) -> Callable[[], bool]:
return lambda message: filter_obj.filter(message)
2 changes: 1 addition & 1 deletion tests/tests_filters/test_chat_message_only.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@pytest.fixture(scope="session")
def filter_obg():
def filter_obj():
return ChatMessageOnly()


Expand Down
2 changes: 1 addition & 1 deletion tests/tests_filters/test_cointains_three_or_more_emojis.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def message(mock_message):


@pytest.fixture(scope="session")
def filter_obg():
def filter_obj():
return ContainsThreeOrMoreEmojies()


Expand Down
2 changes: 1 addition & 1 deletion tests/tests_filters/test_contains_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def message(mock_message, mock_message_entity):


@pytest.fixture(scope="session")
def filter_obg():
def filter_obj():
return ContainsLink()


Expand Down
2 changes: 1 addition & 1 deletion tests/tests_filters/test_contains_tg_contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def message(mock_message):


@pytest.fixture(scope="session")
def filter_obg():
def filter_obj():
return ContainsTelegramContact()


Expand Down
6 changes: 3 additions & 3 deletions tests/tests_filters/test_has_no_valid_previous_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ def message(mock_message, user):


@pytest.fixture(scope="session")
def filter_obg():
def filter_obj():
return HasNoValidPreviousMessages()


@pytest.fixture
def valid_messages(user, filter_obg):
def valid_messages(user, filter_obj):
message_id = 1
for _ in range(filter_obg.MIN_PREVIOUS_MESSAGES_COUNT):
for _ in range(filter_obj.MIN_PREVIOUS_MESSAGES_COUNT):
create_log_message(user_id=user.id, message_id=message_id)
message_id += 1

Expand Down
2 changes: 1 addition & 1 deletion tests/tests_filters/test_is_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def message(mock_message):


@pytest.fixture(scope="session")
def filter_obg():
def filter_obj():
return IsMedia()


Expand Down
2 changes: 1 addition & 1 deletion tests/tests_filters/test_is_message_behalf_of_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def message(mock_message):


@pytest.fixture(scope="session")
def filter_obg():
def filter_obj():
return IsMessageOnBehalfOfChat()


Expand Down

0 comments on commit 7eb6813

Please sign in to comment.