Skip to content

Commit

Permalink
refactor(conftest): Move instana import as much to the front as possible
Browse files Browse the repository at this point in the history
Signed-off-by: Ferenc Géczi <ferenc.geczi@ibm.com>
  • Loading branch information
Ferenc- committed Oct 11, 2023
1 parent ef99069 commit cd76dd8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
import sys
import pytest

# Set our testing flags
os.environ["INSTANA_TEST"] = "true"
# os.environ["INSTANA_DEBUG"] = "true"

# Make sure the instana package is fully loaded
import instana

collect_ignore_glob = []

# Cassandra and gevent tests are run in dedicated jobs on CircleCI and will
Expand Down Expand Up @@ -36,14 +43,6 @@
# The asyncio also depends on aiohttp
collect_ignore_glob.append("*test_asyncio*")

# Set our testing flags
os.environ["INSTANA_TEST"] = "true"
# os.environ["INSTANA_DEBUG"] = "true"

# Make sure the instana package is fully loaded
import instana


@pytest.fixture(scope='session')
def celery_config():
return {
Expand Down

0 comments on commit cd76dd8

Please sign in to comment.