Commit graph

20 commits

Author SHA1 Message Date
David Smith
3eb17007ad Refactored setup.py to remove cmdclass and test packages 2020-11-30 23:02:04 +01:00
Peter Bittner
e2ad1ceced Fix flake8 complaints (E225, E261, E302, W291, W292, W293) 2015-09-08 22:35:06 +02:00
Craig Bruce
51a08742c5 removed custom override_settings, using django instead. Removed with/without app decorators as only use in a few places. Updated all tests to use django provided override_settings. 2014-09-05 12:26:08 -07:00
Joost Cassee
fb98371a01 Add UserVoice service 2012-02-27 01:32:42 +01:00
Eric Davis
75443cd014 Properly set the exit code when running tests
run_tests returns the number of failed tests.  Supplying this number
to sys.exit lets other programs know if there were any test failures.

Also, run the tests with the default verbosity.
2011-09-17 11:26:19 -07:00
Eric Davis
39af53a8c8 Fix recursion error when copying settings._wrapped
https://github.com/jcassee/django-analytical/issues/8 for more information
2011-09-16 16:26:40 -07:00
Eric Davis
ac304371f5 Better handle deleting non-existent attributes 2011-09-12 09:17:48 -07:00
Eric Davis
d217672224 Copy the wrapped settings object when creating UserSettingsHolder
This is needed otherwise deleted settings don't get added back for
later tests
2011-09-12 09:16:15 -07:00
Eric Davis
c1926dc77e Clean up docstring for override_settings 2011-09-11 22:34:24 -07:00
Eric Davis
2a1e2d3f68 Delete settings if set to SETTING_DELETED
Prior to this, SETTING_DELETED was successfully returning values but
was raising AnalyticalException because it failed a subsequent regexp
check.

With this, delete the attribute so that settings.KEY raises an
AttributeError, as expected.
2011-09-11 22:31:43 -07:00
Eric Davis
948c6c7b83 Display original class name when using override_settings 2011-09-10 22:17:58 -07:00
Joost Cassee
13d4051592 Merge branch 'master' of github.com:jcassee/django-analytical
Remove settings manager from testcase
2011-07-05 07:12:58 +02:00
Joost Cassee
f0d4a412c2 Test updates for override_settings decorator 2011-07-04 14:07:56 +02:00
Eric Davis
5bf02a8a07 Backport an updated override_settings now included in Django trunk
Works better when decorating a TestCase
2011-06-29 10:47:37 -07:00
Eric Davis
7fafba34b4 run_tests is depreciated. Use DjangoTestSuiteRunner 2011-06-29 10:46:27 -07:00
Joost Cassee
60fc527ef0 Add @with/out_apps TestCase decorators
Add decorators for adding and removing apps from INSTALLED_APPS in test
cases.
2011-06-29 08:10:02 +02:00
Eric Davis
a76bb3a3a6 Drop django.contrib.sites from INSTALLED_APPS before the test even runs
An attempt at resolving https://github.com/jcassee/django-analytical/issues/2
2011-06-28 10:57:58 -07:00
Joost Cassee
c76e47714e Add tests for internal IP addresses 2011-01-30 10:06:01 +01:00
Joost Cassee
cf7589bc20 Fix tests
Some parts of the code are not yet tested:
 * internal IP addresses feature
 * utils module
2011-01-30 03:05:10 +01:00
Joost Cassee
1fa0d7760d Create project 2011-01-21 02:01:40 +01:00