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
{{ message }}
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.
E django.urls.exceptions.NoReverseMatch: Reverse for 'add_asn_to_channel' with arguments '(-1422, UUID('fdb36645-937c-4c4c-b78d-1ca981dc42a5'))' and keyword arguments '{}' not found. 1 pattern(s) tried: ['core/form/add-asn-to-channel/(?P<asn>[\\d]+)/(?P<channel>[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/$']
I do not instance ASN and pass to Channel, because of model-mommy already treat it for me, instancing this dependency and generating random integers (-1422 in this case of the raised message), once that ASN is a foreign key of Channel. It could work normally, however ASN.number has a validator to accept only positive numbers. It turns my test unpredictable to know if the number is positive or negative. Does exist a way for the treat it without the necessity of using a third party tool (I swear that I still did not think how would do it) or without instance ASN with a fixed positive number value? Does mommy take care of this kind of cases?
The text was updated successfully, but these errors were encountered:
I am creating a test with mommy where a apply it to generate numbers of an attribute and after that, to do a request.
The piece of the test:
Message raised:
E django.urls.exceptions.NoReverseMatch: Reverse for 'add_asn_to_channel' with arguments '(-1422, UUID('fdb36645-937c-4c4c-b78d-1ca981dc42a5'))' and keyword arguments '{}' not found. 1 pattern(s) tried: ['core/form/add-asn-to-channel/(?P<asn>[\\d]+)/(?P<channel>[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/$']
/usr/local/lib/python3.5/site-packages/django/urls/resolvers.py:392: NoReverseMatch
I do not instance
ASN
and pass toChannel
, because of model-mommy already treat it for me, instancing this dependency and generating random integers (-1422 in this case of the raised message), once thatASN
is a foreign key ofChannel
. It could work normally, howeverASN.number
has a validator to accept only positive numbers. It turns my test unpredictable to know if the number is positive or negative. Does exist a way for the treat it without the necessity of using a third party tool (I swear that I still did not think how would do it) or without instanceASN
with a fixed positive number value? Does mommy take care of this kind of cases?The text was updated successfully, but these errors were encountered: