From d256f53b11782959c23f065dc9da767ac64cbd4d Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Mon, 17 Feb 2025 20:18:44 +0100
Subject: [PATCH] WIP

Signed-off-by: Martin Weise <martin.weise@tuwien.ac.at>
---
 dbrepo-search-service/init/tests/test_keycloak_client.py | 2 +-
 dbrepo-search-service/tests/test_app.py                  | 2 +-
 dbrepo-search-service/tests/test_jwt.py                  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dbrepo-search-service/init/tests/test_keycloak_client.py b/dbrepo-search-service/init/tests/test_keycloak_client.py
index 0c43da2301..f52faf78c6 100644
--- a/dbrepo-search-service/init/tests/test_keycloak_client.py
+++ b/dbrepo-search-service/init/tests/test_keycloak_client.py
@@ -23,7 +23,7 @@ class JwtTest(unittest.TestCase):
                 'roles': roles
             }
         }
-        with open('test/rsa/rs256.key', 'rb') as fh:
+        with open('tests/rsa/rs256.key', 'rb') as fh:
             return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256')
 
     def test_obtain_user_token_succeeds(self):
diff --git a/dbrepo-search-service/tests/test_app.py b/dbrepo-search-service/tests/test_app.py
index 0c577b228a..2b765b7754 100644
--- a/dbrepo-search-service/tests/test_app.py
+++ b/dbrepo-search-service/tests/test_app.py
@@ -61,7 +61,7 @@ class JwtTest(unittest.TestCase):
                 'roles': roles
             }
         }
-        with open('test/rsa/rs256.key', 'rb') as fh:
+        with open('tests/rsa/rs256.key', 'rb') as fh:
             return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256')
 
     def test_update_database_media_type_fails(self):
diff --git a/dbrepo-search-service/tests/test_jwt.py b/dbrepo-search-service/tests/test_jwt.py
index 1f23853a7c..6c2b169893 100644
--- a/dbrepo-search-service/tests/test_jwt.py
+++ b/dbrepo-search-service/tests/test_jwt.py
@@ -25,7 +25,7 @@ class JwtTest(unittest.TestCase):
                 'roles': roles
             }
         }
-        with open('test/rsa/rs256.key', 'rb') as fh:
+        with open('tests/rsa/rs256.key', 'rb') as fh:
             return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256')
 
     def test_verify_token_no_token_fails(self):
-- 
GitLab