Skip to content

Commit

Permalink
Fix: Github actions postgresql connection
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Aug 18, 2024
1 parent bc12da3 commit c6d76ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 3 additions & 5 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from yhttp.core import Application

from yhttp.ext.dbmanager import install
from .conftest import CICD


class Bar(easycli.SubCommand):
Expand All @@ -29,10 +28,9 @@ def test_applicationcli(cicd):
cliapp = CLIApplication('example', 'tests.test_cli:app.climain')
env = os.environ.copy()
if cicd:
env['YHTTP_DB_DEFAULT_HOST'] = host
env['YHTTP_DB_DEFAULT_ADMINUSER'] = user
env['YHTTP_DB_DEFAULT_ADMINPASS'] = pass_

env.setdefault('YHTTP_DB_DEFAULT_HOST', 'localhost')
env.setdefault('YHTTP_DB_DEFAULT_ADMINUSER', 'postgres')
env.setdefault('YHTTP_DB_DEFAULT_ADMINPASS', 'postgres')

with Given(cliapp, 'db', environ=env):
assert stderr == ''
Expand Down
3 changes: 0 additions & 3 deletions tests/test_dbmanager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from yhttp.ext.dbmanager import PostgresqlManager


DBNAME = 'yhttp-postgesql-testing'


Expand Down

0 comments on commit c6d76ef

Please sign in to comment.