move credential to a seperate file

This commit is contained in:
array-in-a-matrix 2024-02-06 12:38:21 -05:00
parent 59ef2580a5
commit 5036fa5bf4
2 changed files with 5 additions and 8 deletions

4
tests/credentials.nim Normal file
View file

@ -0,0 +1,4 @@
const
homeserver*: cstring = ""
username*: cstring = ""
password*: cstring = ""

View file

@ -1,13 +1,6 @@
import unittest
import jsconsole
import unittest, jsconsole, nimbotsdk, credentials
import nimbotsdk
test "can login using username and password":
# TODO: import account credentials from a .gitignore'd config file
const
homeserver: cstring = ""
username: cstring = ""
password: cstring = ""
let auth = newMatrixAuth(homeserver)
let client = auth.passwordLogin(username, password)