From 8e1804b39dbf0e5a4cd9f8c572143bf4ccc684e1 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 22 May 2022 08:48:46 +1000 Subject: [PATCH] Debug --- test/api_test.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/api_test.dart b/test/api_test.dart index 3ede3504..83ff2e37 100644 --- a/test/api_test.dart +++ b/test/api_test.dart @@ -15,6 +15,9 @@ void main() { if (! await UserProfileDBManager().profileNameExists("Test Profile")) { // Create and select a profile to user + + print("TEST: Creating profile for user 'testuser'"); + await UserProfileDBManager().addProfile(UserProfile( name: "Test Profile", server: "http://localhost:12345", @@ -30,6 +33,7 @@ void main() { // as they can get overwritten by subsequent tests if (prf != null) { + prf.name = "Test Profile"; prf.server = "http://localhost:12345"; prf.username = "testuser"; prf.password = "testpassword"; @@ -72,7 +76,7 @@ void main() { // TODO: Test the the right 'error message' is returned // TODO: The request above should throw a 'SockeException' - + // Test incorrect login details profile.server = "http://localhost:12345"; profile.username = "invalidusername";