Skip to content

Commit 9035cf2

Browse files
committed
Update test code
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent b605132 commit 9035cf2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/test_model.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,22 +1284,21 @@ def test_pre_process_and_fetch_license_dict_dje(self, have_network_connection, v
12841284
'Network problem. Please check your Internet connection. '
12851285
'License generation is skipped.')
12861286
expected = ({}, [Error(ERROR, error_msg)])
1287-
assert model.pre_process_and_fetch_license_dict([], '', '') == expected
1287+
assert model.pre_process_and_fetch_license_dict([]) == expected
12881288

12891289
valid_api_url.return_value = True
12901290
expected = ({}, [])
1291-
assert model.pre_process_and_fetch_license_dict([], '', '') == expected
1291+
assert model.pre_process_and_fetch_license_dict([]) == expected
12921292

12931293
@mock.patch('attributecode.util.have_network_connection')
12941294
def test_pre_process_and_fetch_license_dict_licensedb(self, have_network_connection):
12951295
have_network_connection.return_value = False
1296-
licensedb_url = 'https://scancode-licensedb.aboutcode.org/'
12971296
error_msg = (
12981297
'Network problem. Please check your Internet connection. '
12991298
'License generation is skipped.')
13001299
expected = ({}, [Error(ERROR, error_msg)])
1301-
assert model.pre_process_and_fetch_license_dict([], None, False) == expected
1300+
assert model.pre_process_and_fetch_license_dict([]) == expected
13021301

13031302
have_network_connection.return_value = True
13041303
expected = ({}, [])
1305-
assert model.pre_process_and_fetch_license_dict([], None, False) == expected
1304+
assert model.pre_process_and_fetch_license_dict([]) == expected

0 commit comments

Comments
 (0)