Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test error: jango.template.exceptions.TemplateSyntaxError: 'attachment_form' did not receive value(s) for the argument(s): 'name', 'id', 'next_url' #36

Closed
Alireza2n opened this issue Apr 29, 2017 · 2 comments

Comments

@Alireza2n
Copy link

Alireza2n commented Apr 29, 2017

Hi,
When running the command "python3 runtests.py" for attachments app, 6 unit tests fail with following error:
django.template.exceptions.TemplateSyntaxError: 'attachment_form' did not receive value(s) for the argument(s): 'name', 'id', 'next_url'

@bartTC
Copy link
Owner

bartTC commented Apr 29, 2017

🤔 This is working fine for me.

(attachments)  ~/Workspace/django-attachments master$ python3 --version
Python 3.6.0
(attachments)  ~/Workspace/django-attachments master$ python3 runtests.py
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.................
----------------------------------------------------------------------
Ran 17 tests in 2.098s

OK
Destroying test database for alias 'default'...

What Python3 version is that? And could you run tox?

$ pip install tox
$ tox -c tox.ini

@bartTC
Copy link
Owner

bartTC commented Apr 30, 2017

I was able to reproduce that. You probably didn't install the attachments app itself. I updated the testing docs in e115774, that should fix it for you. Please reopen if not.

@bartTC bartTC closed this as completed Apr 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants