Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-11-2022 08:52 AM
I have worked through the lesson up to and including Unique Email Addresses and keep getting the errors below when running the pytest 04_handle_constraint_errors__test.py:
FAILED 04_handle_constraint_errors__test.py::test_unique_constraint - assert None is not None
FAILED 04_handle_constraint_errors__test.py::test_validation_error - Failed: DID NOT RAISE <class 'api.exceptions.validation.ValidationException'>
I have also checked out to the 04-handle-constraint-errors branch and see the same errors when running the test. I am not able to complete my training plan without checking off this task.
11-11-2022 09:12 AM
Also, when running the CREATE CONSTRIANT UserEmailUnique command in the sandbox as directed in the lesson, I am getting the following error:
Unable to create Constraint( name='UserEmailUnique', type='UNIQUENESS', schema=(:User {email}) ): Both Node(33890) and Node(33891) have the label `User` and property `email` = '1592@neo4j.com'
11-15-2022 02:26 AM
Hi @jessica_baker,
The constraint cannot be enforced once you have something on the DB that is conflicting with it. If you try to delete one of the nodes that have the email : "1592@neo4j.com", or other nodes that have the same email I think the creation of the constraints would be successful.
Regards,
11-11-2022 11:16 AM
When this is working should it allow login for manual testing on this app? It would be nice to see the functionality in action.
All the sessions of the conference are now available online