Skip to content

Commit

Permalink
Import dohq_artifactory only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed May 7, 2024
1 parent 362b1f0 commit 9a6f78b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import getpass
import os

import dohq_artifactory
import pytest

import audeer
Expand Down Expand Up @@ -95,6 +94,8 @@ def interface(tmpdir_factory, request):
yield interface

if artifactory:
import dohq_artifactory

try:
backend._repo.delete()
except dohq_artifactory.exception.ArtifactoryException:
Expand Down

0 comments on commit 9a6f78b

Please sign in to comment.