Errors running arches tests before creating PR

7 views
Skip to first unread message

Brett Ferguson

unread,
May 5, 2021, 2:28:11 PM5/5/21
to Arches Development
Hi all - 

I'm trying to submit a PR to add some missing operations to the report.py management function, and as part of that process trying to run the tests locally first. However I'm seeing a bunch of test errors locally. Some examples are:

2021-04-30 12:12:01,408 arches.app.utils.data_management.resource_graphs.importer ERROR    Ontology matching query does not exist.

DETAIL:  Key (functionid, graphid)=(60000000-0000-0000-0000-000000000001, ee72fb1e-fa6c-11e9-b369-3af9d3b32b71) already exists.

django.db.utils.IntegrityError: duplicate key value violates unique constraint "functions_x_graphs_functionid_graphid_3628f538_uniq"

DETAIL:  Key (functionid, graphid)=(60000000-0000-0000-0000-000000000001, fd0a5907-e11b-11e8-821b-a4d18cec433a) already exists.

etc. I'm just wondering if I've missed a required step somewhere to setup my local environment to run the tests. I've read the Contributing.md document, and I've had a look around to see if there was other documentation on setting up locally to run the tests, but I haven't been able to find anything. 

I'm running arches in a CentOS 7 VM on an OSX host machine. I'm working on a private fork from the main arches/master branch.

Any hints / help or a point to some documentation I've missed would be appreciated.

Thanks!

Brett

Reply all
Reply to author
Forward
0 new messages