mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-08-04 16:03:14 +02:00
Refactor test cases and base code for consistency and readability
- Updated byte representations in tests to use lowercase hex format for consistency. - Reformatted code for better readability, including line breaks and indentation adjustments. - Consolidated multiple lines into single lines where appropriate to enhance clarity. - Ensured that all test cases maintain consistent formatting and style across the test suite.
This commit is contained in:
@@ -176,9 +176,7 @@ def test_verify_api_token_last_used_throttle(tmp_path, monkeypatch):
|
||||
|
||||
now = {"v": 1000.0}
|
||||
|
||||
monkeypatch.setattr(
|
||||
"repeater.data_acquisition.sqlite_handler.time.time", lambda: now["v"]
|
||||
)
|
||||
monkeypatch.setattr("repeater.data_acquisition.sqlite_handler.time.time", lambda: now["v"])
|
||||
|
||||
token_id = h.create_api_token("svc-throttle", "hash-throttle")
|
||||
assert token_id > 0
|
||||
|
||||
Reference in New Issue
Block a user