Questions tagged [django-webtest]

20 questions
0
votes
1 answer

How to specify name of a Model Form's submit button name via django-webtest

I'm using django-webtest to automate functional tests for a Django application. One of my ModelForms has multiple submit buttons. The template, using django-crispy-forms, looks like this:
{% csrf_token %}

{{…

Tanuka
  • 122
  • 1
  • 11
0
votes
1 answer

No forms exist in unit test with django-webtest

I want to write a test that will test change the password in the application. I use the django-allauth. For testing, I use django-WebTest. When I run my code, I get the message: FAILED (errors=1) Destroying test database for alias…
mark
  • 653
  • 1
  • 10
  • 23
0
votes
1 answer

Executing a single test case with django_webtest

In my config/advertiser/tests/test_advertiser_web.py: from django_webtest import WebTest ... class AdvertiserView(WebTest): ... def test_add_note(self): ... I'd like to just run the test_add_note case. Is that possible? I can't seem to figure…
Allen Luce
  • 7,859
  • 3
  • 40
  • 53
0
votes
1 answer

Django Testing MySQLdb in UnitTest / WebTest

I have a WebTest that I'm running using django-webtest against a database in memory. # settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', } } There's a piece of code that I just cannot run through the…
scoopseven
  • 1,767
  • 3
  • 18
  • 27
0
votes
1 answer

NoReverseError in development environment but not in test

I have a view--called DevicesListView below--that executes without a problem in the test environment (in Webtest), but when I try to execute the same view in the development environment, I get a NoReverseMatch error. devices/urls.py from…
Steve L
  • 1,704
  • 1
  • 20
  • 29
1
2