Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
fix: Refactor to use new API class
Browse files Browse the repository at this point in the history
  • Loading branch information
rsavoye committed Mar 4, 2024
1 parent a835f0b commit 802099f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from tm_admin.users.users import UsersDB
from tm_admin.types_tm import Userrole, Mappinglevel
from datetime import datetime
from tm_admin.messages.api import MessagesAPI
from tm_admin.users.users_class import UsersTable
from tm_admin.messages.messages import MessagesDB
from tm_admin.messages.messages_class import MessagesTable
Expand All @@ -44,8 +45,8 @@
# FIXME: For now these tests assume you have a local postgres installed. One has the TM
# database, the other for tm_admin.

user = UsersDB()
msg = MessagesDB()
# user = UsersDB()
messages = MessagesAPI()

async def get_all_messages():
log.debug(f"--- get_all_messages() unimplemented!")
Expand Down Expand Up @@ -208,8 +209,8 @@ async def main():
stream=sys.stdout,
)

await user.connect(args.uri)
await msg.connect(args.uri)
# await user.connect(args.uri)
await messages.initialize(args.uri)

await send_welcome_message()
await send_message_after_validation()
Expand Down

0 comments on commit 802099f

Please sign in to comment.