add makefile and local test for pb mysql to avoid uploading garbage

This commit is contained in:
collerek
2021-03-10 09:06:23 +01:00
parent b8a85436f7
commit f6c845c318
4 changed files with 42 additions and 1 deletions

View File

@ -6,3 +6,4 @@ DATABASE_URL = os.getenv("DATABASE_URL", "sqlite:///test.db")
database_url = databases.DatabaseURL(DATABASE_URL)
if database_url.scheme == "postgresql+aiopg": # pragma no cover
DATABASE_URL = str(database_url.replace(driver=None))
print('USED DB:', DATABASE_URL)