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
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
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
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
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
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
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
81e1fb3463
Fix Crazy Egg template tag <script> tag
2011-03-15 13:15:07 +01:00
Joost Cassee
a4f41ee004
Add message customization to Olark
2011-03-15 13:14:29 +01:00
Joost Cassee
27b272f6fd
Rename MIXPANEL_TOKEN setting
...
Wes Winham's mixpanel-celery package uses the MIXPANEL_API_TOKEN
setting. Use the same name for the Mixpanel token setting.
2011-03-15 12:55:07 +01:00
Joost Cassee
8649c07c24
Relax service code validation
2011-02-25 00:28:59 +01:00
Joost Cassee
c23b0abc02
Fix version and changelog
...
Version skipped 0.6.0 and the changelog was not updated.
2011-02-25 00:21:20 +01:00
Joost Cassee
19d6cbaa48
Add newest services to analytics tag
2011-02-24 22:32:50 +01:00
Joost Cassee
369d890452
Bump version to 0.7.0
2011-02-24 22:25:26 +01:00
Joost Cassee
4f2d95f928
Add support for Olark
2011-02-24 22:22:28 +01:00
Joost Cassee
8f9b5104da
Add Reinvigorate service
...
This commit also contains a number of typo fixes in the documentation
and bumps the version.
2011-02-22 10:44:53 +01:00
Joost Cassee
327157d610
Fix small code style issues based on pylint
...
Also update patch version number.
2011-02-18 13:57:04 +01:00
Joost Cassee
246c72cc03
Split off Geckoboard support into django-geckoboard
2011-02-15 16:07:32 +01:00