Fixed #18408 -- Flatpages tests expect example.com for site 1 #83

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@datajockey

Resolves a couple of issues with running Flatpages tests by...

  • Creating an example_site fixture
  • Overriding project SITE_ID setting to 1
  • Normalizing the use of the hardcoded (1) site_id to settings.SITE_ID
@datajockey datajockey Resolves Flatpages test issues by
- Creating an example_site fixture
- Overriding project SITE_ID setting to 1
- Normalizing the use of the hardcoded (1) site_id to settings.SITE_ID

Conflicts:

	AUTHORS
	django/contrib/flatpages/tests/csrf.py
	django/contrib/flatpages/tests/middleware.py
	django/contrib/flatpages/tests/templatetags.py
	django/contrib/flatpages/tests/views.py
2cc80be
@claudep
Django member

Many thanks, pushed in ba10be7.
Hope you don't mind I just added a line to your patch (so as a test comparison is made against a translated error message).

@claudep claudep closed this May 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment