Clean up the comments and lint the notebooks #22
1 changed files with 6 additions and 6 deletions
Put identifiers in comments into backticks
commit
ff7f705bc8
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue