Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Comments
  • Loading branch information
meierj-wayscript committed Jul 22, 2021
commit 6a73bfcd542dd1976bf66af741913a9b40bfc321
1 change: 0 additions & 1 deletion src/wayscript/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def get_process():
return data


# are half of these just pass through calls to the integration service? what value does wayscript.context provide as a wrapper? where do we draw the line?
def get_event():
"""Returns the event object of the execution context"""
data = _get_process_detail_expanded_data()["event"]
Expand Down
3 changes: 3 additions & 0 deletions tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def test_always_succeeds():
[("process"), ("event"), ("lair_trigger")],
)
def test_process_expanded_detail_methods(patch_client_get_url, processes_detail_expanded_response, response_key):
"""Test functions that return data from the processes expanded detail call"""
responses.add(responses.GET, patch_client_get_url,
json=processes_detail_expanded_response, status=200)

Expand All @@ -25,6 +26,7 @@ def test_process_expanded_detail_methods(patch_client_get_url, processes_detail_

@responses.activate
def test_get_lair(patch_client_get_url, lairs_detail_response):
"""Test returning lair data"""
responses.add(responses.GET, patch_client_get_url,
json=lairs_detail_response, status=200)

Expand All @@ -33,6 +35,7 @@ def test_get_lair(patch_client_get_url, lairs_detail_response):

@responses.activate
def test_get_workspace(patch_client_get_url, lairs_detail_response, workspaces_detail_response, monkeypatch):
"""Test returning workspace data"""
responses.add(responses.GET, patch_client_get_url,
json=workspaces_detail_response, status=200)

Expand Down