You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using @pytest.mark.vcr() to record web interactions for testing produces the below error related to creating file upload URIs. We've sidestepped by marking such tests as a "webtest" and allowing them to hit the live platform, but it's worth investigating more deeply for a potential fix that avoids hitting the live platform.
def test_project_upload_files():
# NOTE: This is a live webtest to sidestep headaches
# related to handling errors raised during the process
# of generating file upload URIs (KeyError: 'createFileUploadUri')
kwargs = {
'is_open': False ,
'description': 'This is a test project.'
}
uuid = '<FAKE_UUID>'
project = Project.get(uuid, TOKEN)
to_upload = [
fixture_path('test.csv'),
fixture_path('test2.csv')
]
project.upload_files(to_upload)
expected = ['test.csv', 'test2.csv']
actual = [f.name for f in project.files]
> assert project.files == expected
The text was updated successfully, but these errors were encountered:
Using
@pytest.mark.vcr()
to record web interactions for testing produces the below error related to creating file upload URIs. We've sidestepped by marking such tests as a "webtest" and allowing them to hit the live platform, but it's worth investigating more deeply for a potential fix that avoids hitting the live platform.The text was updated successfully, but these errors were encountered: