Notes
Notes - notes.io |
=============================================== ERRORS ================================================
______________________ ERROR at setup of TestSource.test_get_sources_by_project _______________________
request = <SubRequest 'source' for <Function 'test_get_sources_by_project'>>
case = <app.api.models.case.case_maker.<locals>.Case object at 0x1077f7d68>
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107824ba8>
@pytest.fixture()
def source(request, case, project):
source = case.Source.create(**{
'type': 'fs',
'location': 'edrm/edrm.DAT',
'mapping': {'path': 'PATH'},
> 'project': project
})
../../../conftest.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../../app/api/models/case/source.py:92: in create
raise e
../../../../app/api/models/case/source.py:85: in create
source = Source._create(type, location, mapping, project)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
type = 'fs', location = 'edrm/edrm.DAT', mapping = {'path': 'PATH'}
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107824ba8>
@staticmethod
def _create(type, location, mapping, project):
if type is None or location is None or mapping is None:
raise InvalidInputError
if not os.path.isfile(get_file_path(location)):
> raise LoadFileNotFoundError
E app.api.models.case.source.LoadFileNotFoundError: LoadFileNotFound
../../../../app/api/models/case/source.py:146: LoadFileNotFoundError
____________ ERROR at setup of TestSource.test_create_source__source_already_exists_error _____________
request = <SubRequest 'source' for <Function 'test_create_source__source_already_exists_error'>>
case = <app.api.models.case.case_maker.<locals>.Case object at 0x107977048>
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107b9b400>
@pytest.fixture()
def source(request, case, project):
source = case.Source.create(**{
'type': 'fs',
'location': 'edrm/edrm.DAT',
'mapping': {'path': 'PATH'},
> 'project': project
})
../../../conftest.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../../app/api/models/case/source.py:92: in create
raise e
../../../../app/api/models/case/source.py:85: in create
source = Source._create(type, location, mapping, project)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
type = 'fs', location = 'edrm/edrm.DAT', mapping = {'path': 'PATH'}
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107b9b400>
@staticmethod
def _create(type, location, mapping, project):
if type is None or location is None or mapping is None:
raise InvalidInputError
if not os.path.isfile(get_file_path(location)):
> raise LoadFileNotFoundError
E app.api.models.case.source.LoadFileNotFoundError: LoadFileNotFound
../../../../app/api/models/case/source.py:146: LoadFileNotFoundError
_____________ ERROR at setup of TestSource.test_create_source__load_file_not_found_error ______________
request = <SubRequest 'source' for <Function 'test_create_source__load_file_not_found_error'>>
case = <app.api.models.case.case_maker.<locals>.Case object at 0x107bfc4a8>
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107cb9f98>
@pytest.fixture()
def source(request, case, project):
source = case.Source.create(**{
'type': 'fs',
'location': 'edrm/edrm.DAT',
'mapping': {'path': 'PATH'},
> 'project': project
})
../../../conftest.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../../app/api/models/case/source.py:92: in create
raise e
../../../../app/api/models/case/source.py:85: in create
source = Source._create(type, location, mapping, project)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
type = 'fs', location = 'edrm/edrm.DAT', mapping = {'path': 'PATH'}
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107cb9f98>
@staticmethod
def _create(type, location, mapping, project):
if type is None or location is None or mapping is None:
raise InvalidInputError
if not os.path.isfile(get_file_path(location)):
> raise LoadFileNotFoundError
E app.api.models.case.source.LoadFileNotFoundError: LoadFileNotFound
../../../../app/api/models/case/source.py:146: LoadFileNotFoundError
___________________________ ERROR at setup of TestSource.test_delete_source ___________________________
request = <SubRequest 'source' for <Function 'test_delete_source'>>
case = <app.api.models.case.case_maker.<locals>.Case object at 0x107cc8fd0>
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107e4ef98>
@pytest.fixture()
def source(request, case, project):
source = case.Source.create(**{
'type': 'fs',
'location': 'edrm/edrm.DAT',
'mapping': {'path': 'PATH'},
> 'project': project
})
../../../conftest.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../../app/api/models/case/source.py:92: in create
raise e
../../../../app/api/models/case/source.py:85: in create
source = Source._create(type, location, mapping, project)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
type = 'fs', location = 'edrm/edrm.DAT', mapping = {'path': 'PATH'}
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107e4ef98>
@staticmethod
def _create(type, location, mapping, project):
if type is None or location is None or mapping is None:
raise InvalidInputError
if not os.path.isfile(get_file_path(location)):
> raise LoadFileNotFoundError
E app.api.models.case.source.LoadFileNotFoundError: LoadFileNotFound
../../../../app/api/models/case/source.py:146: LoadFileNotFoundError
_______________ ERROR at setup of TestSource.test_delete_source__source_not_found_error _______________
request = <SubRequest 'source' for <Function 'test_delete_source__source_not_found_error'>>
case = <app.api.models.case.case_maker.<locals>.Case object at 0x107de87f0>
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107f83ba8>
@pytest.fixture()
def source(request, case, project):
source = case.Source.create(**{
'type': 'fs',
'location': 'edrm/edrm.DAT',
'mapping': {'path': 'PATH'},
> 'project': project
})
../../../conftest.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../../app/api/models/case/source.py:92: in create
raise e
../../../../app/api/models/case/source.py:85: in create
source = Source._create(type, location, mapping, project)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
type = 'fs', location = 'edrm/edrm.DAT', mapping = {'path': 'PATH'}
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107f83ba8>
@staticmethod
def _create(type, location, mapping, project):
if type is None or location is None or mapping is None:
raise InvalidInputError
if not os.path.isfile(get_file_path(location)):
> raise LoadFileNotFoundError
E app.api.models.case.source.LoadFileNotFoundError: LoadFileNotFound
../../../../app/api/models/case/source.py:146: LoadFileNotFoundError
_________________________ ERROR at setup of TestSource.test_get_source_fields _________________________
request = <SubRequest 'source' for <Function 'test_get_source_fields'>>
case = <app.api.models.case.case_maker.<locals>.Case object at 0x107f0ada0>
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x1080b76a0>
@pytest.fixture()
def source(request, case, project):
source = case.Source.create(**{
'type': 'fs',
'location': 'edrm/edrm.DAT',
'mapping': {'path': 'PATH'},
> 'project': project
})
../../../conftest.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../../app/api/models/case/source.py:92: in create
raise e
../../../../app/api/models/case/source.py:85: in create
source = Source._create(type, location, mapping, project)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
type = 'fs', location = 'edrm/edrm.DAT', mapping = {'path': 'PATH'}
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x1080b76a0>
@staticmethod
def _create(type, location, mapping, project):
if type is None or location is None or mapping is None:
raise InvalidInputError
if not os.path.isfile(get_file_path(location)):
> raise LoadFileNotFoundError
E app.api.models.case.source.LoadFileNotFoundError: LoadFileNotFound
../../../../app/api/models/case/source.py:146: LoadFileNotFoundError
============================================== FAILURES ===============================================
____________________________________ TestSource.test_create_source ____________________________________
self = <tests.api.controllers.case.test_source.TestSource object at 0x10783fb70>
web_client = <FlaskClient <Flask 'app'>>
user = <app.api.models.user.user_maker.<locals>.User object at 0x10798d240>
access_token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NTkwOTI1MzIsImlkZW50aXR5IjoxLCJpYXQiOjE0NTY0MTQxMzIsIm5iZiI6MTQ1NjQxNDEzMn0.kG80_U58Y2VTHDZQdc9RLQzaOuqDVc1bE_oBSQATCa8'
case = <app.api.models.case.case_maker.<locals>.Case object at 0x107916da0>
project = <app.api.models.case.project.project_maker.<locals>.Project object at 0x107a4d940>
def test_create_source(self, web_client, user, access_token, case, project):
response = web_client.post('/api/cases/{}/projects/{}/sources'.format(case.id, project.id), headers={
'content-type': 'application/json',
'Authorization': 'JWT {}'.format(access_token)
}, data=json.dumps({
'type': 'fs',
'location': 'edrm/edrm.DAT',
'mapping': {"path": "PATH"}
}))
result = json.loads(response.data.decode())
> assert 'id' in result
E assert 'id' in {'error': 'LoadFileNotFound'}
test_source.py:28: AssertionError
================================= 1 failed, 6 error in 16.90 seconds ==================================
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team