From bbe57dfd69fc2f5d2ebb8a0c9dd35246b38fca77 Mon Sep 17 00:00:00 2001 From: einarf Date: Thu, 28 May 2020 00:18:04 +0200 Subject: [PATCH] Broken test intialization --- src/tests/tests.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tests/tests.py b/src/tests/tests.py index 601704f..8a40596 100644 --- a/src/tests/tests.py +++ b/src/tests/tests.py @@ -3,6 +3,9 @@ import os import unittest from unittest import mock +os.environ['RESTIC_REPOSITORY'] = "test" +os.environ['RESTIC_PASSWORD'] = "password" + from restic_compose_backup import utils from restic_compose_backup.containers import RunningContainers import fixtures @@ -15,8 +18,8 @@ class ResticBackupTests(unittest.TestCase): @classmethod def setUpClass(cls): """Set up basic environment variables""" - os.environ['RESTIC_REPOSITORY'] = "test" - os.environ['RESTIC_PASSWORD'] = "password" + # os.environ['RESTIC_REPOSITORY'] = "test" + # os.environ['RESTIC_PASSWORD'] = "password" def createContainers(self): backup_hash = fixtures.generate_sha256()