Skip to content

Commit

Permalink
Merge pull request #12 from GianmarcoBasile/test
Browse files Browse the repository at this point in the history
chore: remove asyncio for pytest
  • Loading branch information
GianmarcoBasile authored Jan 27, 2024
2 parents ec02ced + e52e707 commit 0fefdef
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 13 deletions.
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.

0 comments on commit 0fefdef

Please sign in to comment.