From c4f912361276a357cd945f70c607bda0173da9d2 Mon Sep 17 00:00:00 2001 From: CodeDarigan Date: Mon, 20 May 2019 16:45:01 +0100 Subject: [PATCH] delete test --- tests/Unit/test_doubler.gd | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 tests/Unit/test_doubler.gd diff --git a/tests/Unit/test_doubler.gd b/tests/Unit/test_doubler.gd deleted file mode 100644 index 0b7d9891..00000000 --- a/tests/Unit/test_doubler.gd +++ /dev/null @@ -1,25 +0,0 @@ -extends WATTest - -var login - -# This causes issues with half of the stray nodes - -func pre(): -# login = DOUBLE.script(Login) - login = double_script(Login) - login.stub("login", {"username": "alex", "password": "code"}, "Logged In") - login.stub("login", {"username": "jack", "password": "captain"}, "Hello Captain Jack") - login.stub("register", {"username": "dank", "password": "pass"}, "Username 'Dank' is unacceptable") - login.default("register", "alloallo") - -func supra_doubler_all_should_pass(): - # In real tests, we would usually expect these to be called from elsewhere - expect.is_equal(login.execute("login", 2, "alex", "code"), "Logged In", "Logged In == Logged In") - expect.is_equal(login.instance.login("jack", "captain"), "Hello Captain Jack", "Hello Captain Jack == Hello Captain Jack") - expect.was_called(login, "login", "Login was called") - expect.was_not_called(login, "register", "Register was not called") - -func test_doubler_all_of_these_should_fail(): - login.instance.login("alex", "explode") - expect.was_not_called(login, "login", "Login was not called") - expect.was_called(login, "register", "register was called") \ No newline at end of file