Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored Dec 2, 2024
1 parent b981ab7 commit 7ce2acc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from pathlib import Path
from shutil import rmtree

from transifex.api.jsonapi.exceptions import DoesNotExist

from pytransifex.api import Transifex
from pytransifex.interfaces import Tx
from tests import logging, test_config
Expand Down Expand Up @@ -32,7 +34,10 @@ def setUpClass(cls):
)

logger.info("Deleting test project if it already exists")
cls.tx.delete_project(project_slug=cls.project_slug)
try:
cls.tx.delete_project(project_slug=cls.project_slug)
except DoesNotExist:
pass

logger.info("Creating a brand new project")
cls.tx.create_project(
Expand Down

0 comments on commit 7ce2acc

Please sign in to comment.