Skip to content

Commit

Permalink
added end to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Nargis Sultani committed Dec 17, 2024
1 parent e0809fc commit 11b168a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 28 deletions.
28 changes: 1 addition & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,7 @@ on:
jobs:
unit-tests:
runs-on: ubuntu-latest
env:
AUTH_CLIENT: regtech-client
AUTH_URL: http://localhost:8880/realms/regtech/protocol/openid-connect/auth
TOKEN_URL: http://localhost:8880/realms/regtech/protocol/openid-connect/token
CERTS_URL: http://localhost:8880/realms/regtech/protocol/openid-connect/certs
KC_URL: http://localhost:8880/;KC_REALM=regtech;KC_ADMIN_CLIENT_ID=admin-cli
KC_ADMIN_CLIENT_SECRET: local_test_only
KC_REALM_URL: http://localhost:8880/realms/regtech
DB_NAME: filing
DB_USER: filing_user
DB_PWD: filing_user
DB_HOST: localhost:5432
DB_SCHEMA: filing
JWT_OPTS_VERIFY_AT_HASH: false
JWT_OPTS_VERIFY_AUD: false
JWT_OPTS_VERIFY_ISS: false
FS_UPLOAD_CONFIG__PROTOCOL: file
FS_UPLOAD_CONFIG__ROOT: ../upload
INST_DB_HOST: localhost:5432
INST_DB_NAME: financial_institutions
INST_DB_PWD: fi
INST_DB_SCHEMA: public
INST_DB_USER: fi
EXPIRED_SUBMISSION_CHECK_SECS: 120
SERVER_CONFIG__RELOAD: true
PYTHONUNBUFFERED: 1
DB_SCHEME: postgresql

permissions:
# Gives the action the necessary permissions for publishing new
# comments in pull requests.
Expand Down
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ source = ["src"]
[tool.coverage.report]
skip_empty = true

[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = ["src"]
addopts = [
"--cov-report=term-missing",
"--cov-branch",
"--cov-report=xml",
"--cov-report=term",
"--cov=src",
"-vv",
"--strict-markers",
"-rfE",
]
env = [
"AUTH_CLIENT=regtech-client",
"AUTH_URL=http://localhost",
Expand All @@ -70,3 +83,6 @@ env = [
"KC_URL=http://localhost:8880",
"TOKEN_URL=http://localhost"
]

testpaths = ["tests"]

2 changes: 1 addition & 1 deletion tests/entities/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from sbl_filing_api.entities.models.dao import Base as Filing_Base
from regtech_user_fi_management.entities.models.dao import Base as Institution_Base
from tests.entities.test_dao import Base as Test_Base
from test_dao import Base as Test_Base
from sqlalchemy import Engine, create_engine
from sqlalchemy.orm import sessionmaker, scoped_session

Expand Down

0 comments on commit 11b168a

Please sign in to comment.