diff --git a/tests/test_config.py b/tests/test_config.py index c6e64fe..a4964a5 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -31,7 +31,7 @@ def test_database_uri_set(env, monkeypatch): monkeypatch.setattr(configuration.ProductionConfig, "DATABASE_URI", uri) monkeypatch.setattr(configuration.TestingConfig, "DATABASE_URI", uri) - # Prevent that a warning is emitted for a missing R_LIBS_PATH + # Prevent that a warning is emitted for a missing `R_LIBS_PATH` monkeypatch.setattr(configuration.Config, "R_LIBS_PATH", ".cache/r_libs") with warnings.catch_warnings(record=True) as record: @@ -49,7 +49,7 @@ def test_no_database_uri_set_with_testing_env_var(env, monkeypatch): monkeypatch.setenv("TESTING", "true") - # Prevent that a warning is emitted for a missing R_LIBS_PATH + # Prevent that a warning is emitted for a missing `R_LIBS_PATH` monkeypatch.setattr(configuration.Config, "R_LIBS_PATH", ".cache/r_libs") with warnings.catch_warnings(record=True) as record: @@ -67,7 +67,7 @@ def test_no_database_uri_set_without_testing_env_var(env, monkeypatch): monkeypatch.delenv("TESTING", raising=False) - # Prevent that a warning is emitted for a missing R_LIBS_PATH + # Prevent that a warning is emitted for a missing `R_LIBS_PATH` monkeypatch.setattr(configuration.Config, "R_LIBS_PATH", ".cache/r_libs") with pytest.warns(UserWarning, match="no DATABASE_URI"): @@ -79,7 +79,7 @@ def test_r_libs_path_set(env, monkeypatch): """Package does NOT emit a warning if R_LIBS is set in the environment.""" monkeypatch.setattr(configuration.Config, "R_LIBS_PATH", ".cache/r_libs") - # Prevent that a warning is emitted for a missing DATABASE_URI + # Prevent that a warning is emitted for a missing `DATABASE_URI` uri = "postgresql://user:password@localhost/db" monkeypatch.setattr(configuration.ProductionConfig, "DATABASE_URI", uri) @@ -99,7 +99,7 @@ def test_no_r_libs_path_set_with_testing_env_var(env, monkeypatch): monkeypatch.setattr(configuration.Config, "R_LIBS_PATH", None) monkeypatch.setenv("TESTING", "true") - # Prevent that a warning is emitted for a missing DATABASE_URI + # Prevent that a warning is emitted for a missing `DATABASE_URI` uri = "postgresql://user:password@localhost/db" monkeypatch.setattr(configuration.ProductionConfig, "DATABASE_URI", uri) @@ -119,7 +119,7 @@ def test_no_r_libs_path_set_without_testing_env_var(env, monkeypatch): monkeypatch.setattr(configuration.Config, "R_LIBS_PATH", None) monkeypatch.delenv("TESTING", raising=False) - # Prevent that a warning is emitted for a missing DATABASE_URI + # Prevent that a warning is emitted for a missing `DATABASE_URI` uri = "postgresql://user:password@localhost/db" monkeypatch.setattr(configuration.ProductionConfig, "DATABASE_URI", uri)