Tidying; add .env.sample
continuous-integration/drone/push Build is passing

This commit is contained in:
3wc
2021-08-16 02:28:28 +02:00
parent b3c655bc47
commit 0574d58a7c
6 changed files with 15 additions and 11 deletions
-2
View File
@@ -12,8 +12,6 @@ class LoginTests(BaseTestCase):
response = client.get(url_for("auth.login"))
self.assert_200(response)
# FIXME test generated login link
def test_login_magiclink(self):
token, ignoreCaseMatches = get_model().login('test@example.com')
-7
View File
@@ -29,7 +29,6 @@ class ConsoleTests(BaseTestCase):
def setUp(self):
super().setUp()
get_model().cursor.execute("DELETE FROM host_operation")
get_model().cursor.execute("DELETE FROM operations")
get_model().cursor.execute("DELETE FROM vm_ssh_host_key")
@@ -48,8 +47,6 @@ class ConsoleTests(BaseTestCase):
for host_id in host_ids:
get_model().host_heartbeat(host_id)
def test_index(self):
self._login('test@example.com')
with self.client as client:
@@ -80,7 +77,6 @@ class ConsoleTests(BaseTestCase):
0
)
def test_create_fails_capacity(self):
with self.client as client:
@@ -162,7 +158,6 @@ class ConsoleTests(BaseTestCase):
url_for("console.index") + f'?created={vm_id}'
)
def test_keys_loads(self):
self._login('test@example.com')
with self.client as client:
@@ -215,5 +210,3 @@ class ConsoleTests(BaseTestCase):
'A key with that name already exists',
category='message'
)