Skip to content

Commit 974b4e1

Browse files
author
Aaron Halfaker
committed
Fixes an old python 2 bytes string in a test.
1 parent 16add24 commit 974b4e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mwoauth/tests/test_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77

88
def test_process_request_token():
99
request_token = process_request_token(
10-
b"oauth_token=iamatoken&oauth_token_secret=iamasecret")
10+
"oauth_token=iamatoken&oauth_token_secret=iamasecret")
1111
assert request_token.key == "iamatoken"
1212
assert request_token.secret == "iamasecret"
1313

1414

1515
def test_process_request_token_errors():
1616
text = "Error: Произошла ошибка в протоколе OAuth: " + \
1717
"Invalid consumer key"
18-
content = bytes(text, "utf-8")
18+
#content = bytes(text, "utf-8")
1919
with pytest.raises(OAuthException, match=text[len("Error: "):]):
20-
process_request_token(content)
20+
process_request_token(text)
2121

2222
with pytest.raises(OAuthException, match="I am an error"):
2323
process_request_token("Error: I am an error")

0 commit comments

Comments
 (0)