| 12345678910111213141516171819 |
- """Test Flask application setup."""
- import pytest
- def test_app_creation(app):
- """Test that the app is created successfully."""
- assert app is not None
- assert app.config['TESTING'] is True
- def test_app_has_swagger_docs(client):
- """Test that Swagger documentation is accessible."""
- response = client.get('/api/docs')
- assert response.status_code == 200
- def test_database_setup(db_session):
- """Test that database is set up correctly."""
- assert db_session is not None
|