Skip to content

Commit

Permalink
Remove explicit pytest labels (#19562)
Browse files Browse the repository at this point in the history
* Remove explicit pytest labels

* Bring back request for dd_environment fixture

* update license header
  • Loading branch information
iliakur authored Feb 10, 2025
1 parent bc09f8f commit b33cd00
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions sonarqube/tests/test_e2e.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import pytest

from datadog_checks.base.constants import ServiceCheck

from .common import CHECK_CONFIG
from .metrics import ALL_METRICS

pytestmark = [pytest.mark.e2e]


def test_e2e(dd_agent_check):
aggregator = dd_agent_check(CHECK_CONFIG, rate=True)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Datadog, Inc. 2020-present
# (C) Datadog, Inc. 2025-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
Expand All @@ -8,7 +8,7 @@
from .common import PROJECT
from .metrics import WEB_METRICS

pytestmark = [pytest.mark.integration, pytest.mark.usefixtures('dd_environment')]
pytestmark = [pytest.mark.usefixtures('dd_environment')]


def test_check(aggregator, dd_run_check, sonarqube_check, web_instance):
Expand Down
3 changes: 0 additions & 3 deletions sonarqube/tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@
import os

import mock
import pytest
import requests

from datadog_checks.dev.http import MockResponse

from .common import HERE
from .metrics import WEB_METRICS

pytestmark = [pytest.mark.unit]


def test_service_check_critical(aggregator, dd_run_check, sonarqube_check, web_instance):
with mock.patch('datadog_checks.sonarqube.check.SonarqubeCheck.http') as mock_http:
Expand Down

0 comments on commit b33cd00

Please sign in to comment.