Skip to content

Commit

Permalink
Andrew is a rapscallion
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Sep 1, 2023
1 parent 4c648ec commit 522c771
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,20 @@ jobs:
- uses: actions/checkout@v3
- name: "Install Dependencies"
run: |
pip install -r requirements.txt
pip install -r tests/requirements.txt
pip install --upgrade pip
pip install '.[dev]'
- name: "Start meshdb API"
run: gunicorn meshdb:app --graceful-timeout 5 --bind=0.0.0.0:8080 & sleep 3
run: gunicorn app --graceful-timeout 5 --bind=0.0.0.0:8080 & sleep 3
env:
MESHDB_DB_NAME: nycmesh-dev
MESHDB_DB_USER: nycmesh
MESHDB_DB_HOST: localhost
MESHDB_DB_PASSWORD: helloThisIsATest
- name: "Run Integration Test Script"
run: |
PYTHONPATH=. pytest .
env:
MESHDB_DB_NAME: nymesh-dev
MESHDB_DB_NAME: nycmesh-dev
MESHDB_DB_USER: nycmesh
MESHDB_DB_HOST: localhost
MESHDB_DB_PASSWORD: helloThisIsATest
9 changes: 9 additions & 0 deletions tests/test_manual_add.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import pytest
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, select

from meshdb.models.member import member
from meshdb.models.building import building, BuildingStatusEnum
from meshdb.models.install import install, InstallStatusEnum
from meshdb.db.database import create_db_engine
from meshdb.db.setup import setup_db


@pytest.fixture(autouse=True)
def fixture_setup_db():
setup_db()
yield


def test_manual_add():
Expand Down

0 comments on commit 522c771

Please sign in to comment.