Skip to content

[Eng-7752] tests deps upgrade #379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mfr/core/remote_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async def _send_to_keen(payload, collection, project_id, write_key, action, doma
settings.KEEN_API_VERSION,
project_id, collection)

async with await aiohttp.request('POST', url, headers=headers, data=serialized) as resp:
async with aiohttp.request('POST', url, headers=headers, data=serialized) as resp:
if resp.status == 201:
logger.info(f'Successfully logged {action} to {collection} collection in {domain} Keen')
else:
Expand Down
3 changes: 1 addition & 2 deletions mfr/providers/osf/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import furl
import aiohttp
from aiohttp.errors import ContentEncodingError

from waterbutler.core import streams

Expand Down Expand Up @@ -92,7 +91,7 @@ async def metadata(self):

try:
metadata = {'data': json.loads(response_headers['x-waterbutler-metadata'])['attributes']}
except ContentEncodingError:
except Exception:
pass # hack: aiohttp tries to unzip empty body when Content-Encoding is set

self.metrics.add('metadata.raw', metadata)
Expand Down
16 changes: 11 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ pydocx==0.9.10
# Image
olefile==0.44
Pillow==11.0.0
psd-tools==1.4
psd-tools==1.10.7

# IPython
ipython==7.31.1
nbconvert==4.2.0
nbformat==4.1.0
traitlets==4.2.2
nbconvert==6.4.0
nbformat==5.1.3
traitlets==5.0
jsonschema==2.4.0
jinja2==2.10.1
jinja2==3.0.0
mistune==0.8.1

# Pdf
Expand All @@ -54,3 +54,9 @@ scipy==1.14.1
markdown==3.8.0

certifi==2025.1.31


markupsafe==2.0.1

# Standard library imghdr redistribution because it is not supported in python 3.13.
standard-imghdr==3.13.0
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ ignore = E501,E127,E128,E265,E301,E302,F403,E731
max-line-length = 100
exclude = .ropeproject,tests/*,src/*,env,venv,node_modules/*

[pytest]
[tool:pytest]
norecursedirs = .* build CVS _darcs {arch} *.egg venv node_modules/*
Empty file added tests/core/__init__.py
Empty file.
Loading