From 5036fa5bf4a2c3dbe2224b2699ba07afc8fd9797 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Tue, 6 Feb 2024 12:38:21 -0500 Subject: [PATCH] move credential to a seperate file --- tests/credentials.nim | 4 ++++ tests/test1.nim | 9 +-------- 2 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 tests/credentials.nim diff --git a/tests/credentials.nim b/tests/credentials.nim new file mode 100644 index 0000000..e03167c --- /dev/null +++ b/tests/credentials.nim @@ -0,0 +1,4 @@ +const + homeserver*: cstring = "" + username*: cstring = "" + password*: cstring = "" \ No newline at end of file diff --git a/tests/test1.nim b/tests/test1.nim index 3309c63..af71368 100644 --- a/tests/test1.nim +++ b/tests/test1.nim @@ -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)