8000 Updated extend to append for matches in conftest · anshprat/github3.py@b1aed2c · GitHub 10000
[go: up one dir, main page]

Skip to content

Commit b1aed2c

Browse files
Updated extend to append for matches in conftest
Updated file_contents from b'Hello World' to 'Hello World'
1 parent 5043f94 commit b1aed2c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
os.environ.get('GH_AUTH', 'x' * 20)
2323
)
2424

25-
config.default_cassette_options['match_requests_on'].extend([
26-
'json-body'
27-
])
25+
config.default_cassette_options['match_requests_on'].append('json-body')
2826

2927
config.define_cassette_placeholder(
3028
'<BASIC_AUTH>',

tests/integration/test_repos_release.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_upload_asset(self):
7878

7979
with self.recorder.use_cassette(cassette_name,
8080
**self.betamax_simple_body):
81-
file_contents = b'Hello World'
81+
file_contents = 'Hello World'
8282
asset = release.upload_asset(
8383
'text/plain', 'test_repos_release.py', file_contents,
8484
)
@@ -97,7 +97,7 @@ def test_upload_asset_with_a_label(self):
9797
)
9898
with self.recorder.use_cassette(cassette_name,
9999
**self.betamax_simple_body):
100-
file_contents = b'Hello World'
100+
file_contents = 'Hello World'
101101
asset = release.upload_asset(
102102
'text/plain', 'test_repos_release.py', file_contents,
103103
'test-label',
@@ -168,7 +168,7 @@ def test_edit(self):
168168
with self.recorder.use_cassette(cassette_name,
169169
preserve_exact_body_bytes=True,
170170
**self.betamax_simple_body):
171-
file_contents = b'Hello World'
171+
file_contents = 'Hello World'
172172
asset = release.upload_asset(
173173
'text/plain', 'test_repos_release.py', file_contents
174174
)

0 commit comments

Comments
 (0)
0