Fix tests and linter errors, still need to handle todos
This commit is contained in:
@@ -12,7 +12,9 @@ from sublime.config import AppConfiguration, ProviderConfiguration
|
||||
@pytest.fixture
|
||||
def adapter_manager(tmp_path: Path):
|
||||
subsonic_config_store = ConfigurationStore(
|
||||
server_address="https://subsonic.example.com", username="test",
|
||||
server_address="https://subsonic.example.com",
|
||||
username="test",
|
||||
verify_cert=True,
|
||||
)
|
||||
subsonic_config_store.set_secret("password", "testpass")
|
||||
|
||||
|
@@ -20,7 +20,9 @@ MOCK_DATA_FILES = Path(__file__).parent.joinpath("mock_data")
|
||||
@pytest.fixture
|
||||
def adapter(tmp_path: Path):
|
||||
config = ConfigurationStore(
|
||||
server_address="https://subsonic.example.com", username="test",
|
||||
server_address="https://subsonic.example.com",
|
||||
username="test",
|
||||
verify_cert=True,
|
||||
)
|
||||
config.set_secret("password", "testpass")
|
||||
|
||||
@@ -73,6 +75,12 @@ def camel_to_snake(name: str) -> str:
|
||||
return re.sub("([a-z0-9])([A-Z])", r"\1_\2", name).lower()
|
||||
|
||||
|
||||
def test_config_form():
|
||||
# Just make sure that the functions work. That's half of the battle.
|
||||
config_store = ConfigurationStore()
|
||||
SubsonicAdapter.get_configuration_form(config_store)
|
||||
|
||||
|
||||
def test_request_making_methods(adapter: SubsonicAdapter):
|
||||
expected = {
|
||||
"u": "test",
|
||||
|
Reference in New Issue
Block a user