Skip to content

Commit

Permalink
Rename test json files to library version
Browse files Browse the repository at this point in the history
  • Loading branch information
Liborsaf committed Apr 8, 2024
1 parent f91f58f commit 4559da7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions tests/device_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,16 +281,16 @@ def test_update_service_urls_error_response(self):

@mock.patch('requests.get', side_effect=mocked_requests_get)
@mock.patch('requests.post', side_effect=mocked_requests_post)
def test_load_old_json_file(self, mocked_requests_post, mocked_requests_get):
content = read_file("data/old.json")
def test_load_v0_5_0_json_file(self, mocked_requests_post, mocked_requests_get):
content = read_file("data/v0.5.0.json")
device = SonyDevice.load_from_json(content)

self.verify_json_load_fields(device)

@mock.patch('requests.get', side_effect=mocked_requests_get)
@mock.patch('requests.post', side_effect=mocked_requests_post)
def test_load_new_json_file(self, mocked_requests_post, mocked_requests_get):
content = read_file("data/new.json")
def test_load_v0_6_0_json_file(self, mocked_requests_post, mocked_requests_get):
content = read_file("data/v0.6.0.json")
device = SonyDevice.load_from_json(content)

self.verify_json_load_fields(device)
Expand Down

0 comments on commit 4559da7

Please sign in to comment.