-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd2e821
commit b2cda02
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import pytest | ||
from bonkbot.db.data_service import DataService | ||
|
||
@pytest.fixture | ||
def dataservice_instance(): | ||
service = DataService() | ||
return service | ||
|
||
def test_get_user_should_return(dataservice_instance): | ||
discord_id = 1 | ||
guild_id = 1 | ||
|
||
user = dataservice_instance.get_user(discord_id, guild_id) | ||
assert user is not None | ||
assert user.discord_id == discord_id | ||
|
This file was deleted.
Oops, something went wrong.