Skip to content

Commit

Permalink
add testing config to flask app
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed May 16, 2024
1 parent 80f9024 commit b05505d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@

EXAMPLE_DATA = Path(__file__).parents[1] / "example_data"

HARVEST_SOURCE_URL = os.getenv('HARVEST_SOURCE_URL')
HARVEST_SOURCE_URL = os.getenv("HARVEST_SOURCE_URL")


@pytest.fixture(scope="session")
def app() -> Flask:
app = create_app()

app.config["TESTING"] = True

with app.app_context():
db.create_all()
yield app
Expand Down

1 comment on commit b05505d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
harvester
   __init__.py50100% 
   ckan_utils.py11366 95%
   exceptions.py420100% 
   harvest.py2374141 83%
   logger_config.py10100% 
   utils.py7933 96%
TOTAL4775090% 

Tests Skipped Failures Errors Time
53 0 💤 0 ❌ 0 🔥 14.275s ⏱️

Please sign in to comment.