Skip to content

Commit

Permalink
Bump flask to 1.1.1 (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre authored Sep 26, 2019
1 parent b438253 commit d145442
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15 deletions.
5 changes: 3 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pytest==3.6.3
pytest>=4.6.5,<5.0.0
pytest-cov==2.5.1
requests_mock==1.4.0
httmock==1.2.3
lockfile==0.10.2
coverage==3.7.1
mock==1.0.1
pytest-flask==0.11.0
pytest-flask==0.15.0
moto==0.4.5
sphinxcontrib-httpdomain==1.3.0

Expand All @@ -14,6 +14,7 @@ Sphinx==1.6.5
sphinx_rtd_theme
flasgger==0.9.1
-e git+https://[email protected]/uc-cdis/[email protected]#egg=cdisutilstest
# TODO: when sheepdog is python 3, update to latest indexd
-e git+https://[email protected]/uc-cdis/[email protected]#egg=indexd
# indexd dependencies
authutils==3.1.1
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ boto==2.36.0
cryptography==2.3
dictionaryutils==2.0.7
envelopes==0.4
Flask==0.12.4
Flask==1.1.1
flask-cors==3.0.3
Flask-SQLAlchemy-Session==1.1
fuzzywuzzy==0.6.1
Expand All @@ -20,7 +20,7 @@ requests==2.22.0
setuptools==30.1.0
simplejson==3.8.1
sqlalchemy==1.3.5
Werkzeug==0.12.2
Werkzeug==0.16.0
xmltodict==0.9.2
more-itertools==5.0.0
-e git+https://[email protected]/uc-cdis/[email protected]#egg=cdis_oauth2client
Expand Down
2 changes: 1 addition & 1 deletion sheepdog/blueprint/routes/views/program/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def export_entities(program, project):
project_id = "{}-{}".format(program, project)
file_format = kwargs.get("file_format") or "tsv"

mimetype = "application/octet-stream"
mimetype = "application/json" if file_format.lower() == "json" else "application/octet-stream"
if not kwargs.get("ids"):
if not node_label:
raise UserError("expected either `ids` or `node_label` parameter")
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def create_user_header_function(username, **kwargs):
# to generate a token
user_properties = {
"id": 1,
"username": "submitter",
"username": username,
"is_admin": False,
"policies": [],
"google_proxy_group_id": None,
Expand Down
1 change: 0 additions & 1 deletion tests/integration/datadict/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def get_parent(path):

PATH_TO_SCHEMA_DIR = get_parent(os.path.abspath(os.path.join(os.path.realpath(__file__), os.pardir))) + '/datadict/schemas'

@pytest.fixture(scope='session')
def pg_config():
test_host = 'localhost'
test_user = 'test'
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/datadict/submission/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def test_export_entity_by_id(client, pg_driver, cgci_blgsp, submitter):
path,
headers=submitter)
data = r.json
assert len(data) == 1
assert data and len(data) == 1
assert data[0]['id'] == case_id


Expand Down
1 change: 0 additions & 1 deletion tests/integration/datadictwithobjid/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def get_parent(path):
)


@pytest.fixture(scope="session")
def pg_config():
test_host = "localhost"
test_user = "test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ def test_valid_file_index(monkeypatch, client, pg_driver, cgci_blgsp, submitter,

print r.json
data = r.json
assert data and len(data) == 1
object_id = data[0]['object_id']
assert len(data) == 1
assert object_id

assert sur_entity, 'No submitted_unaligned_reads entity created'
Expand All @@ -620,7 +620,7 @@ def test_export_entity_by_id(client, pg_driver, cgci_blgsp, submitter):
path,
headers=submitter)
data = r.json
assert len(data) == 1
assert data and len(data) == 1
assert data[0]['id'] == case_id


Expand Down
8 changes: 4 additions & 4 deletions tests/integration/datadictwithobjid/submission/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_data_file_not_indexed(
r = client.get(path, headers=submitter)

data = r.json
assert len(data) == 1
assert data and len(data) == 1
assert did == None


Expand Down Expand Up @@ -241,7 +241,7 @@ def get_index_by_uuid(uuid):
r = client.get(path, headers=submitter)

data = r.json
assert len(data) == 1
assert data and len(data) == 1
assert data[0]["object_id"] == document.did
assert data[0]["id"] != document.did

Expand Down Expand Up @@ -587,7 +587,7 @@ def get_index_by_uuid(uuid):
r = client.get(path, headers=submitter)

data = r.json
assert len(data) == 1
assert data and len(data) == 1
assert data[0]["object_id"] == file["object_id"]

# check that the acl and uploader fields have been updated in indexd
Expand Down Expand Up @@ -921,7 +921,7 @@ def test_create_file_no_required_index(
r = client.get(path, headers=submitter)

data = r.json
assert len(data) == 1
assert data and len(data) == 1


@patch(
Expand Down

0 comments on commit d145442

Please sign in to comment.