File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/patches Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 77from unittest .mock import MagicMock , patch
88
99import gevent .monkey
10- import pytest
1110
1211import opentelemetry .sdk .extension .aws .resource .ec2 as ec2_resource
1312import opentelemetry .sdk .extension .aws .resource .eks as eks_resource
@@ -97,7 +96,6 @@ class TestInstrumentationPatch(TestCase):
9796 method_patches : Dict [str , patch ] = {}
9897 mock_metric_exporter_init : patch
9998
100- @pytest .mark .forked
10199 def test_instrumentation_patch (self ):
102100 # Set up method patches used by all tests
103101 self .method_patches [IMPORTLIB_METADATA_VERSION_PATCH ] = patch (IMPORTLIB_METADATA_VERSION_PATCH ).start ()
Original file line number Diff line number Diff line change 1515 -c dev-requirements.txt
1616 test: pytest
1717 test: pytest-cov
18- test: pytest-forked
1918 test: fastapi
2019 test: starlette
2120 test: flask
@@ -44,8 +43,7 @@ commands_pre =
4443 aws-opentelemetry-distro: pip install {toxinidir}/aws-opentelemetry-distro
4544
4645commands =
47- test: pytest --forked -m " not forked" --cov ={envsitepackagesdir}/amazon --cov-config =../../.coveragerc {posargs}
48- test: pytest -m " forked" --cov ={envsitepackagesdir}/amazon --cov-config =../../.coveragerc --cov-append {posargs}
46+ test: pytest --cov ={envsitepackagesdir}/amazon --cov-config =../../.coveragerc {posargs}
4947
5048[testenv:spellcheck]
5149basepython: python3
You can’t perform that action at this time.
0 commit comments