Skip to content

Commit

Permalink
python 2 is back again...for now...
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianneubauer committed Jan 7, 2018
1 parent cbc7f38 commit 335111f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description-file = README.rst
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifier =
Development Status :: 4 - Beta
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6

Expand Down Expand Up @@ -38,8 +39,8 @@ packages =
# Add here additional requirements for extra features, like:
docker =
docker
secrets =
cryptography
secure-config =
secure-config
prometheus =
prometheus-client

Expand Down
5 changes: 3 additions & 2 deletions tests/test_integration/test_backend_behaviour.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import uuid

import json
import os
import pytest

Expand Down Expand Up @@ -90,8 +90,9 @@ def delete_test_database_and_user(db_name, username, config):
def parametrized_setup(request, tmpdir):
from postgraas_server.management_resources import db
cfg = tmpdir.join('config')
with open(cfg.strpath, "w", encoding="utf8") as fp:
with open(cfg.strpath, "w") as fp:
json.dump(CONFIGS[request.param], fp)

config = configuration.get_config(cfg.strpath)
this_app = create_app(config)
this_app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite://"
Expand Down
6 changes: 4 additions & 2 deletions tests/test_integration/test_postgras_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ def delete_test_database_and_user(db_name, username, config):
def parametrized_setup(request, tmpdir):
from postgraas_server.management_resources import db
cfg = tmpdir.join('config')
with open(cfg.strpath, "w", encoding="utf8") as fp:
with open(cfg.strpath, "w") as fp:
json.dump(CONFIGS[request.param], fp)

config = configuration.get_config(cfg.strpath)
this_app = create_app(config)
this_app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite://"
Expand Down Expand Up @@ -105,8 +106,9 @@ def parametrized_setup(request, tmpdir):
def docker_setup(request, tmpdir):
from postgraas_server.management_resources import db
cfg = tmpdir.join('config')
with open(cfg.strpath, "w", encoding="utf8") as fp:
with open(cfg.strpath, "w") as fp:
json.dump(CONFIGS['docker'], fp)

this_app = create_app(configuration.get_config(cfg.strpath))
this_app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite://"
this_app.use_reloader = False
Expand Down

0 comments on commit 335111f

Please sign in to comment.