Skip to content

Commit

Permalink
added skipping of tests which fail in OSX (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimitra authored Dec 7, 2021
1 parent 1005ad0 commit 5b16895
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/clients/test_google-cloud-storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def setUp(self):
self.recorder = tracer.recorder
self.recorder.clear_spans()

@pytest.mark.skipif(sys.platform == "darwin", reason="Raises not Implemented exception in OSX")
@patch('requests.Session.request')
def test_buckets_list(self, mock_requests):
mock_requests.return_value = self._mock_response(
Expand Down Expand Up @@ -514,6 +515,7 @@ def test_objects_insert(self, mock_requests):
self.assertEqual('test bucket', gcs_span.data["gcs"]["bucket"])
self.assertEqual('test object', gcs_span.data["gcs"]["object"])

@pytest.mark.skipif(sys.platform == "darwin", reason="Raises not Implemented exception in OSX")
@patch('requests.Session.request')
def test_objects_list(self, mock_requests):
mock_requests.return_value = self._mock_response(
Expand Down Expand Up @@ -787,6 +789,7 @@ def test_object_hmac_keys_get(self, mock_requests):
self.assertEqual('test-project', gcs_span.data["gcs"]["projectId"])
self.assertEqual('test key', gcs_span.data["gcs"]["accessId"])

@pytest.mark.skipif(sys.platform == "darwin", reason="Raises not Implemented exception in OSX")
@patch('requests.Session.request')
def test_object_hmac_keys_list(self, mock_requests):
mock_requests.return_value = self._mock_response(
Expand Down
2 changes: 2 additions & 0 deletions tests/opentracing/test_ot_span.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import json
import time
import unittest
import pytest
import opentracing
from uuid import UUID
from instana.util import to_json
Expand Down Expand Up @@ -72,6 +73,7 @@ def test_span_fields(self):
self.assertEqual("string", span.tags['tagone'])
self.assertEqual(150, span.tags['tagtwo'])

@pytest.mark.skipif(sys.platform == "darwin", reason="Raises not Implemented exception in OSX")
def test_span_queueing(self):
recorder = opentracing.tracer.recorder

Expand Down

0 comments on commit 5b16895

Please sign in to comment.