Skip to content

Commit

Permalink
Fix tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
frankharkins committed Jan 29, 2024
1 parent 3bfbbb5 commit 5b7752c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/daos/test_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ class TestDao(TestCase):
"""Tests repository related functions."""

def setUp(self) -> None:
self.path = "../resources"
self.labels_path = "{}/labels.json".format(self.path)
self.path = Path("../resources")
self.labels_path = self.path / "labels.json"
self._create_dummy_labels_json()
if not os.path.exists(self.path):
if not self.path.exists():
os.makedirs(self.path)
if not self.labels_path.exists():
os.makedirs(self.labels_path)

def _delete_labels_json(self):
"""Deletes labels file.
Expand Down

0 comments on commit 5b7752c

Please sign in to comment.