Skip to content

Commit

Permalink
fixed some errors in the test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Hilborn authored and Michael-Hilborn committed Jul 23, 2021
1 parent c714520 commit 1353bd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions tests/test_delete_edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ class MockDeleteTriggers:
def json():
return {"success": True}

def edge_function():
return create_edge_function.EdgeFunctionCreator(
crn="testString",
app_url="test-url.com",
apikey="testString",
zone_id="testString",
domain="test-domain.com",
token="test-token"
)

def test_fail_delete_action(monkeypatch):
sample_inputs = StringIO('y\n')
monkeypatch.setattr('sys.stdin', sample_inputs)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_delete_glb.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MockGlobalLoadBalancerV1DNE:

# create_load_balancer_monitor() creates a fake Load Balancer Monitor for testing
def delete_load_balancer(self, load_balancer_identifier):
return DetailedResponse(response={"result": { "id": glb_id}})
return DetailedResponse(response={"result": { "id": load_balancer_identifier}})

def list_all_load_balancers(self):
return DetailedResponse(response={"result": []})
Expand Down

0 comments on commit 1353bd3

Please sign in to comment.