Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
verdan committed Jul 30, 2020
1 parent 471b9ca commit 8cb11b5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,11 @@ def test_relationship_guid_create(self, mocker, atlas_client, relationship_guid_
def test_relationship_put(self, mocker, atlas_client, relationship_guid_response):
relationship_collection = atlas_client.relationship(data=relationship_guid_response)
for r in relationship_collection:
# assert r._data == relationship_guid_response
assert r.end1 == relationship_guid_response.get("end1")
assert r.end2 == relationship_guid_response.get("end2")
mocker.patch.object(r.client, 'put')
r.client.put.return_value = relationship_guid_response
r.update()
# r.client.put.assert_called_with(r._href, data=r._data)

def test_relationship_post(self, mocker, atlas_client, relationship_guid_response):
relationship_collection = atlas_client.relationship(data=relationship_guid_response)
Expand All @@ -450,7 +448,6 @@ def test_relationship_post(self, mocker, atlas_client, relationship_guid_respons
mocker.patch.object(r.client, 'post')
r.client.post.return_value = relationship_guid_response
r.create()
# r.client.post.assert_called_with(r._href, data=r._data)

class TestDiscoveryREST():
def test_search_attribute_get(self, mocker, atlas_client, search_attribute_response):
Expand Down

0 comments on commit 8cb11b5

Please sign in to comment.