-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove now-unused custom field stuff from fake_jira
- Loading branch information
Showing
2 changed files
with
2 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,9 @@ def test_get_github_session(fake_github): | |
|
||
def test_get_jira_session(fake_jira): | ||
session = get_jira_session("test1") | ||
response = session.get("/rest/api/2/field") | ||
response = session.get("/rest/api/2/issue/FOO-99") | ||
headers = response.request.headers | ||
user_token = "[email protected]:asdasdasdasdasd" | ||
basic_auth = base64.b64encode(user_token.encode()).decode() | ||
assert headers["Authorization"] == f"Basic {basic_auth}" | ||
assert response.url == "https://test.atlassian.net/rest/api/2/field" | ||
assert response.url == "https://test.atlassian.net/rest/api/2/issue/FOO-99" |