File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
"""Integration tests for methods implemented on Organization."""
3
3
import pytest
4
+ import requests
4
5
5
6
import github3
6
7
@@ -93,6 +94,8 @@ def test_edit(self):
93
94
94
95
assert o .edit (location = 'Madison, WI' ) is True
95
96
97
+ @pytest .mark .xfail (requests .__build__ >= 0x021100 ,
98
+ reason = "Requests 2.11.0 breaks our cassettes." )
96
99
def test_is_member (self ):
97
100
"""Test the ability to check if a User is a member of the org."""
98
101
cassette_name = self .cassette_name ('is_member' )
Original file line number Diff line number Diff line change 2
2
import os
3
3
import tempfile
4
4
5
+ import pytest
6
+ import requests
7
+
5
8
from .helper import IntegrationHelper
6
9
7
10
8
11
class TestRelease (IntegrationHelper ):
12
+
13
+ @pytest .mark .xfail (requests .__build__ >= 0x021100 ,
14
+ reason = "Requests 2.11.0 breaks our cassettes" )
9
15
def test_archive (self ):
10
16
"""Test the ability to download a release archive."""
11
17
cassette_name = self .cassette_name ('archive' )
Original file line number Diff line number Diff line change 3
3
import github3 .exceptions as exc
4
4
5
5
import pytest
6
+ import requests
6
7
7
8
from . import helper
8
9
@@ -472,6 +473,8 @@ def test_deployments(self):
472
473
for d in repository .deployments ():
473
474
assert isinstance (d , github3 .repos .deployment .Deployment )
474
475
476
+ @pytest .mark .xfail (requests .__build__ >= 0x021100 ,
477
+ reason = "Requests breaks our recorded cassettes" )
475
478
def test_directory_contents (self ):
476
479
"""Test that a directory's contents can be retrieved."""
477
480
cassette_name = self .cassette_name ('directory_contents' )
You can’t perform that action at this time.
0 commit comments