From 6a074f1a9a128b19d184817ecaf5168e4c6b5ca1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org>
Date: Thu, 17 Dec 2020 14:48:06 +0100
Subject: [PATCH] fix

---
 pycaosdb.ini.template     | 4 ++++
 tests/test_permissions.py | 1 +
 2 files changed, 5 insertions(+)

diff --git a/pycaosdb.ini.template b/pycaosdb.ini.template
index d8441a3..369b33f 100644
--- a/pycaosdb.ini.template
+++ b/pycaosdb.ini.template
@@ -9,6 +9,10 @@ test_files.test_insert_files_in_dir.local=/extroot/test_insert_files_in_dir/
 # location of the files from the caosdb_servers perspective
 test_files.test_insert_files_in_dir.server=/opt/caosdb/mnt/extroot/test_insert_files_in_dir/
 
+# location of the one-time tokens from the pyinttest's perspective
+test_authentication.admin_token_crud = /authtoken/admin_token_crud.txt
+test_authentication.admin_token_expired = /authtoken/admin_token_expired.txt
+test_authentication.admin_token_3_attempts = /authtoken/admin_token_3_attempts.txt
 
 ## Insert your usual settings here
 [Connection]
diff --git a/tests/test_permissions.py b/tests/test_permissions.py
index b00a8e6..3528a63 100644
--- a/tests/test_permissions.py
+++ b/tests/test_permissions.py
@@ -46,6 +46,7 @@ easy_pw = "1234"
 
 
 def setup_module():
+    switch_to_admin_user()
     insert_test_user()
 
 
-- 
GitLab