Skip to content

Commit

Permalink
add initial dataservice test
Browse files Browse the repository at this point in the history
  • Loading branch information
das-kaesebrot committed Oct 1, 2024
1 parent cd2e821 commit b2cda02
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Empty file added tests/__init__.py
Empty file.
16 changes: 16 additions & 0 deletions tests/dataservice_test.py
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

2 changes: 0 additions & 2 deletions tests/dummy_test.py

This file was deleted.

0 comments on commit b2cda02

Please sign in to comment.