Skip to content

Commit

Permalink
Separate state files
Browse files Browse the repository at this point in the history
  • Loading branch information
MGibson1 committed Sep 25, 2024
1 parent 7cedc78 commit 6596db7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions languages/python/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ def setUpClass(cls):
cls.mutable_client = BitwardenClient(settings)

# authenticate
print(cls)
cls.state_path = os.path.join(language_tests_path, "state.json")
cls.immutable_state_path = os.path.join(
language_tests_path, "immutable_state.json"
)
cls.client.auth().login_access_token(os.getenv("ACCESS_TOKEN"), cls.state_path)
cls.mutable_client.auth().login_access_token(
os.getenv("MUTABLE_ACCESS_TOKEN"), cls.state_path
os.getenv("MUTABLE_ACCESS_TOKEN"), cls.immutable_state_path
)

# Query for projects
Expand All @@ -109,6 +111,7 @@ def setUpClass(cls):
@classmethod
def tearDownClass(cls):
os.remove(cls.state_path)
os.remove(cls.immutable_state_path)


class ReadTests(PythonLanguageTests, unittest.TestCase):
Expand Down

0 comments on commit 6596db7

Please sign in to comment.