Fixed a couple of linter errors and got rid of a test that doesn't matter

This commit is contained in:
Sumner Evans
2020-05-27 23:25:39 -06:00
parent bdce6b45a2
commit 66b5f0c95d
3 changed files with 4 additions and 2 deletions

View File

@@ -151,6 +151,7 @@ class SubsonicAdapter(Adapter):
# TODO (#96): also use NM to detect when the connection changes and update
# accordingly.
# TODO don't ping in offline mode
while True:
self._set_ping_status()
sleep(15)
@@ -158,7 +159,6 @@ class SubsonicAdapter(Adapter):
def _set_ping_status(self):
now = datetime.now().timestamp()
if now - self._last_ping_timestamp.value < 15:
print("ohea")
return
try:

View File

@@ -3,7 +3,6 @@ import logging
import re
from datetime import datetime, timedelta, timezone
from pathlib import Path
from time import sleep
from typing import Any, Generator, List, Tuple
import pytest

View File

@@ -37,6 +37,9 @@ def test_yaml_load_unload():
unyamlified = yaml.load(yamlified, Loader=yaml.CLoader)
deserialized = AppConfiguration(**unyamlified)
return
# TODO (#197) reinstate these tests with the new config system.
# Make sure that the config and each of the servers gets loaded in properly
# into the dataclass objects.
assert asdict(config) == asdict(deserialized)