simplefe

Log | Files | Refs

conftest.py (378B)


      1 import pytest
      2 
      3 from simplefe.app import create_app
      4 
      5 
      6 @pytest.fixture()
      7 def app(tmp_path):
      8     app = create_app(token="test-token", dotenv_path=str(tmp_path / ".env"))
      9     app.config.update({"TESTING": True})
     10     yield app
     11 
     12 
     13 @pytest.fixture()
     14 def client(app):
     15     return app.test_client()
     16 
     17 
     18 @pytest.fixture()
     19 def auth_headers():
     20     return {"Authorization": "Bearer test-token"}