Skip to content

Commit d7f17c8

Browse files
committed
FIX: lowercase MAC normalization across project v0.4
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
1 parent 8538c87 commit d7f17c8

10 files changed

Lines changed: 10 additions & 10 deletions

test/api_endpoints/test_dbquery_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def client():
2626
@pytest.fixture(scope="session")
2727
def test_mac():
2828
# Generate a unique MAC for each test run
29-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
29+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower()
3030

3131

3232
def auth_headers(token):

test/api_endpoints/test_device_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def client():
2828
@pytest.fixture
2929
def test_mac():
3030
# Generate a unique MAC for each test run
31-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
31+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower()
3232

3333

3434
def auth_headers(token):

test/api_endpoints/test_devices_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def client():
2424
@pytest.fixture
2525
def test_mac():
2626
# Generate a unique MAC for each test run
27-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
27+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower()
2828

2929

3030
def auth_headers(token):

test/api_endpoints/test_events_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def client():
2626
@pytest.fixture
2727
def test_mac():
2828
# Generate a unique MAC for each test run
29-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
29+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower()
3030

3131

3232
def auth_headers(token):

test/api_endpoints/test_graphq_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def client():
2323
@pytest.fixture
2424
def test_mac():
2525
# Generate a unique MAC for each test run
26-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
26+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower().lower()
2727

2828

2929
def auth_headers(token):

test/api_endpoints/test_history_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def client():
2424
@pytest.fixture
2525
def test_mac():
2626
# Generate a unique MAC for each test run
27-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
27+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower()
2828

2929

3030
def auth_headers(token):

test/api_endpoints/test_nettools_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def client():
1919
@pytest.fixture
2020
def test_mac():
2121
# Generate a unique MAC for each test run
22-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
22+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower()
2323

2424

2525
def auth_headers(token):

test/api_endpoints/test_sessions_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def client():
2626
@pytest.fixture
2727
def test_mac():
2828
# Generate a unique MAC for each test run
29-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
29+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower()
3030

3131

3232
def auth_headers(token):

test/api_endpoints/test_settings_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def client():
2424
@pytest.fixture
2525
def test_mac():
2626
# Generate a unique MAC for each test run
27-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
27+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower()
2828

2929

3030
def auth_headers(token):

test/server/test_graphql_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def client():
2424
@pytest.fixture
2525
def test_mac():
2626
# Generate a unique MAC for each test run
27-
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3))
27+
return "aa:bb:cc:" + ":".join(f"{random.randint(0, 255):02X}" for _ in range(3)).lower()
2828

2929

3030
def auth_headers(token):

0 commit comments

Comments
 (0)