diff options
Diffstat (limited to 'tests/features/environment.py')
-rw-r--r-- | tests/features/environment.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/features/environment.py b/tests/features/environment.py index 25f5c6ba..6b4d4241 100644 --- a/tests/features/environment.py +++ b/tests/features/environment.py @@ -86,6 +86,7 @@ def before_all(context): 'PGPASSWORD': os.environ.get('PGPASSWORD', None), 'PGPORT': os.environ.get('PGPORT', None), 'XDG_CONFIG_HOME': os.environ.get('XDG_CONFIG_HOME', None), + 'PGSERVICEFILE': os.environ.get('PGSERVICEFILE', None), } # Set new env vars. @@ -93,6 +94,8 @@ def before_all(context): os.environ['PGUSER'] = context.conf['user'] os.environ['PGHOST'] = context.conf['host'] os.environ['PGPORT'] = context.conf['port'] + os.environ['PGSERVICEFILE'] = os.path.join( + fixture_dir, 'mock_pg_service.conf') if context.conf['pass']: os.environ['PGPASSWORD'] = context.conf['pass'] |