This is not a commit
This commit is contained in:
@@ -19,6 +19,7 @@ class TestConfig(Config):
|
||||
|
||||
# Adding LAPTOP_MAC environment variable
|
||||
os.environ['LAPTOP_MAC'] = '00:00:00:00:00:00'
|
||||
os.environ['LAPTOP_IP'] = '192.168.0.0'
|
||||
|
||||
@pytest.fixture
|
||||
def app():
|
||||
@@ -40,7 +41,7 @@ def auth_headers():
|
||||
headers = {
|
||||
'Authorization': f'Basic {encoded_credentials}'
|
||||
}
|
||||
return headers
|
||||
return headers
|
||||
|
||||
def test_wol_valid_device(client, auth_headers):
|
||||
response = client.get('/wol/laptop?key=28c93e98b2a87e47db16372bdb6e7593fb1addf9ccc10eae562827a7358cab3b', headers=auth_headers)
|
||||
|
||||
Reference in New Issue
Block a user