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
c88fbd6c75
Make SettingDeleted tests compatible with Python 2.6 and Django 1.2
...
Using assertRaises as a context manager only became possible in Python
2.7 or when using Django 1.3 (thanks to unittest2). This change lets
the tests pass when using Python 2.6 and Django 1.2.
Also, test for the existence of assertRaisesRegexp and use it if it
exists, otherwise use assertRaises.
2011-09-17 11:13:15 -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
96ee34e671
Use assertRaisesRegexp for get_required_setting test
2011-09-16 16:26:40 -07:00
Joost Cassee
f24998ef2d
Update changelog
2011-09-16 21:23:28 +02:00
Joost Cassee
be25e2cfd4
Merge remote-tracking branch 'edavis/setting-deleted'
2011-09-16 21:21:19 +02:00
Eric Davis
e8ce3be1b0
Add some tests for SETTING_DELETED
2011-09-12 09:25:46 -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
b6b4a82cac
Fix changelog typo
2011-08-27 08:18:19 +02:00
Joost Cassee
56e3d85e15
Bump version in changelog
2011-08-27 08:12:43 +02:00
Joost Cassee
8784df4524
Add support for the SnapEngage service
2011-08-22 23:21:57 +02:00
Joost Cassee
499a9c3cd8
Update changelog and bump version
2011-08-19 07:59:02 +02:00
Julien Grenier
e2e01490dc
This is the updated code from the mixpanel API Integration code. (see http://mixpanel.com/api/docs/guides/integration/js )
2011-08-16 14:07:08 -03:00
Joost Cassee
f6a634a64e
Small changes to enumerate compatibility
...
Also update the changelog and version number.
2011-07-21 07:17:01 +02:00
Joost Cassee
861e3b7947
Merge branch 'master' of github.com:jcassee/django-analytical
2011-07-21 07:09:50 +02:00
Joost Cassee
1160a10a3d
Add 'and others' to copyright
2011-07-21 07:09:37 +02:00
Joost Cassee
a24682aff3
Merge pull request #5 from rasca/master
...
Add enumerate function for Python 2.5 compatibility
2011-07-20 22:02:35 -07:00
Iván Raskovsky
a0c6d992ef
added python 2.5 compatibility to google_analytics
2011-07-18 15:21:57 -03:00
Joost Cassee
2e4cb7fff9
Update changelog and increment version
2011-07-05 18:01:44 +02:00
Joost Cassee
aa9f1c0a2f
Add Eric Davis to contributors
2011-07-05 07:22:06 +02:00
Joost Cassee
d5917b2e89
Update Django docs link to 1.3
2011-07-05 07:21:41 +02: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
Joost Cassee
52e54c8db8
Merge pull request #4 from edavis/tests
...
Fix tests
2011-07-04 05:02:24 -07:00
Eric Davis
c09e02f833
Use a plain TestCase for the two suites that alter INSTALLED_APPS
...
And move the syncdb call to setUp in ChartbeatTagTestCaseWithSites
2011-06-29 12:15:10 -07:00
Eric Davis
6187229e3e
Add test for CHARTBEAT_AUTO_DOMAIN
...
Even if 'django.contrib.sites' is in INSTALLED_APPS, don't add the
domain if CHARTBEAT_AUTO_DOMAIN is False
2011-06-29 12:07:37 -07:00
Eric Davis
249dac1467
CHARTBEAT_USER_ID is already set at the class level
2011-06-29 12:06:46 -07:00
Eric Davis
3391d78773
Check for 'django.contrib.sites' when getting the domain for chartbeat
2011-06-29 11:54:57 -07:00
Eric Davis
b712121a22
Clean up chartbeat tests
...
Must call 'syncdb' inside test_rendering_setup_site because we add
'django.contrib.sites' to INSTALLED_APPS
2011-06-29 10:49:37 -07: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
Joost Cassee
e848c599c3
Merge pull request #3 from edavis/master
...
Add override_settings to fix changes to settings.INSTALLED_APPS.
Update clicky tests.
2011-06-28 22:22:39 -07:00
Eric Davis
2efd00dfbe
Update tests to reflect changes in 70ff4f6
2011-06-28 11:49:29 -07:00
Eric Davis
5d0e7226ad
Use override_settings with Chartbeat's test_rendering_setup_site too
2011-06-28 11:49:19 -07: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
70ff4f6826
Support multiple Clicky codes; increment version
...
Clicky has updated their Javascript code to support logging to multiple
sites at the same time.
2011-06-05 15:17:41 +02:00
Joost Cassee
3e5e0c25f2
Fix MANIFEST bug
...
An old MANIFEST file caused GoSquared support to be missing from the
source distribution.
2011-04-23 00:14:18 +02:00
Joost Cassee
d40b73f23c
Bump version to 0.8.0
2011-04-01 22:42:03 +02:00
Joost Cassee
3a02a73d94
Add GoSquared support
2011-04-01 22:41:36 +02:00
Joost Cassee
41c7484495
Fix Woopra documentation typos
2011-04-01 22:02:35 +02:00
Joost Cassee
756b887dfd
Fix Clicky template tags
2011-04-01 21:54:16 +02:00
Joost Cassee
4f82bd876a
Update Clicky tracking code to use relative URLs
2011-03-30 15:11:47 +02:00
Joost Cassee
babfad16ac
Add support for the Woopra service
...
Also bump the version to 0.7.0.
2011-03-15 16:48:23 +01:00
Joost Cassee
e4a53def30
Fix mixpanel-celery rST target name
2011-03-15 14:13:06 +01:00
Joost Cassee
81e1fb3463
Fix Crazy Egg template tag <script> tag
2011-03-15 13:15:07 +01:00