Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove asyncio for pytest #12

Merged
merged 1 commit into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .coverage
Binary file not shown.
5 changes: 0 additions & 5 deletions tests/test_addgame.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class TestAddGame(unittest.IsolatedAsyncioTestCase):
@pytest.mark.asyncio
async def test_addGame_no_args(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand All @@ -21,7 +20,6 @@ async def test_addGame_no_args(self):
"The correct syntax for this command is: /addgame <game_name>"
)

@pytest.mark.asyncio
async def test_addGame_wrong_args_suggestion(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand All @@ -36,7 +34,6 @@ async def test_addGame_wrong_args_suggestion(self):
r"Game not found. Maybe you meant: (.*)counter-strike(.*)",
)

@pytest.mark.asyncio
async def test_addGame_wrong_args_no_suggestion(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand All @@ -48,7 +45,6 @@ async def test_addGame_wrong_args_no_suggestion(self):
await addGame(update, context)
message.reply_text.assert_called_once_with("The game is not a steam game")

@pytest.mark.asyncio
async def test_addGame_twice(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand All @@ -62,7 +58,6 @@ async def test_addGame_twice(self):
await addGame(update, context)
message.reply_text.assert_called_once_with("The game is already in the list")

@pytest.mark.asyncio
async def test_addGame_successful(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand Down
2 changes: 0 additions & 2 deletions tests/test_cleargameslist.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class TestClearGamesList(unittest.IsolatedAsyncioTestCase):
@pytest.mark.asyncio
async def test_cleargameslist_successful(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand All @@ -25,7 +24,6 @@ async def test_cleargameslist_successful(self):
await clearGamesList(update, context)
message.reply_text.assert_called_once_with("Games list cleared")

@pytest.mark.asyncio
async def test_cleargameslist_wrong_args(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand Down
3 changes: 0 additions & 3 deletions tests/test_deletegame.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class TestDeleteGame(unittest.IsolatedAsyncioTestCase):
@pytest.mark.asyncio
async def test_deleteGame_successful(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand All @@ -27,7 +26,6 @@ async def test_deleteGame_successful(self):
"Game counter-strike 2 deleted from the list"
)

@pytest.mark.asyncio
async def test_deleteGame_no_args(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand All @@ -41,7 +39,6 @@ async def test_deleteGame_no_args(self):
"The correct syntax for this command is: /deletegame <game_name>"
)

@pytest.mark.asyncio
async def test_deleteGame_wrong_args(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand Down
2 changes: 0 additions & 2 deletions tests/test_getfavoritegames.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class TestGetFavoriteGamesList(unittest.IsolatedAsyncioTestCase):
@pytest.mark.asyncio
async def test_getfavoritegames_successful(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand All @@ -21,7 +20,6 @@ async def test_getfavoritegames_successful(self):
await getFavoriteGames(update, context)
message.reply_text.assert_called_once_with("Favorite Games: counter-strike 2")

@pytest.mark.asyncio
async def test_getfavoritegames_wrong_args(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand Down
1 change: 0 additions & 1 deletion tests/test_getnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class TestGetNews(unittest.IsolatedAsyncioTestCase):
@pytest.mark.asyncio
async def test_getnews_wrong_args(self):
update = MagicMock(spec=Update)
context = MagicMock(spec=CallbackContext)
Expand Down
Empty file removed tests/test_saleOnGames.py
Empty file.
Loading