Spaces:
Runtime error
Runtime error
Commit ·
d9d1b31
1
Parent(s): d28ead5
Minor Changes
Browse filesFiles changed (2)
8 unmodified lines91011121314158 unmodified lines secret_key: str algorithm: str access_token_expire_minutes: int test_database_name: str
class Config: env_file = ".env"8 unmodified lines9101112121314158 unmodified linesfrom app.models import Post
SQLALCHEMY_DATABASE_URL = f"postgresql://{setting.database_username}:{setting.database_password}@{setting.database_hostname}:{setting.database_port}/{setting.database_name}_test"SQLALCHEMY_DATABASE_URL = f"postgresql://{setting.database_username}:{setting.database_password}@{setting.database_hostname}:{setting.database_port}/{setting.test_database_name}"engine = create_engine(SQLALCHEMY_DATABASE_URL)TestingSessionMaker = sessionmaker(autoflush=False, autocommit=False, bind=engine)
app/config.py+1
tests/conftest.py+1-1