Commit Graph

74 Commits

Author SHA1 Message Date
Tom Christie
f7b7778a79 pull in markos changes, minor tweaks to yaml stuff 2011-07-01 17:44:08 +01:00
Tom Christie
e5e019b0b3 Pull in David's initial oauth tests 2011-06-28 08:53:53 +01:00
markotibold
d417a1a20a moved from examples/requirements.txt to main requirements.txt 2011-06-26 01:41:15 +02:00
markotibold
8cab127c2a some restyling and updated requirements.txt for yaml support 2011-06-26 01:38:56 +02:00
David Larlet
fe7e3ba3ae Adding tests for OAuth authentication through django-oauth-plus, a dedicated example project is still missing though 2011-06-25 18:42:03 +02:00
markotibold
bae21b14c9 added a container view for the permissions example 2011-06-25 16:38:16 +02:00
markotibold
ddd36206bc Added a fixture so that the users default have a user to login with and play with permissions. 2011-06-25 13:08:46 +02:00
markotibold
1692942ec2 added a permissions example with just a per-user-throttle which we may want to expand with some auth examples. 2011-06-20 01:11:45 +02:00
markotibold
ef8c286f86 added a permissions example with just a per-user-throttle which we may want to expand with some auth examples. 2011-06-20 01:11:08 +02:00
markotibold
37db771cb9 added a permissions example with just a per-user-throttle which we may want to expand with some auth examples. 2011-06-20 01:10:25 +02:00
Tom Christie
ff6e78323f update some examples 2011-06-15 14:09:57 +01:00
Tom Christie
7dcb851c7f Allow related models to be fully serialized 2011-06-15 14:09:01 +01:00
Tom Christie
412b5fc2d5 Support for nesting resources etc...
--HG--
rename : djangorestframework/tests/resources.py => djangorestframework/tests/serializer.py
2011-06-14 18:22:13 +01:00
markotibold
dac7eb0916 fixed the blogpost-tests 2011-06-09 01:47:30 +02:00
Tom Christie
c7c1408875 Fix example tests 2011-06-08 01:03:53 +01:00
Tom Christie
f6d807c844 Ug. Remove crazy tests from blogposts example 2011-06-07 23:51:28 +01:00
Tom Christie
a8980892c4 Fix broken url naming in examples 2011-06-07 14:07:49 +01:00
Tom Christie
3531b0b355 More updating docs for 0.2
--HG--
rename : docs/examples/modelresources.rst => docs/examples/modelviews.rst
rename : docs/examples/resources.rst => docs/examples/views.rst
2011-06-02 16:03:11 +01:00
Tom Christie
370274f564 Allow views to return HttpResponses. Add initial() hook method 2011-05-24 10:27:24 +01:00
Tom Christie
c531759147 name and description 2011-05-23 17:07:31 +01:00
Tom Christie
8c3280f9c0 data flattening needs to go into resource 2011-05-19 08:36:55 +01:00
Tom Christie
75cc1eb2a8 blogpost/views no longer needed 2011-05-16 15:57:10 +01:00
Tom Christie
1e04790d50 Fixing some of the last blocking issues 2011-05-16 14:11:36 +01:00
Tom Christie
15f9e7c566 refactoring resource specfic stuff into ResourceMixin - validators now defunct 2011-05-12 12:55:13 +01:00
Tom Christie
d373b3a067 Decouple views and resources 2011-05-04 09:21:17 +01:00
Tom Christie
8756664e06 emitters -> renderers 2011-05-02 19:49:12 +01:00
Tom Christie
93aa065fa9 emitters -> renderers 2011-04-28 19:54:30 +01:00
Tom Christie
5921e5c84e Fix up ModelResource issues 2011-04-27 18:53:54 +01:00
Tom Christie
5a59f339c1 Urg. Fixing broken merge 2011-04-27 18:44:21 +01:00
Tom Christie
1e1c4f85fc Pulling marko's test fixes 2011-04-27 18:29:12 +01:00
Tom Christie
da60f68f50 Merge previous checkins 2011-04-27 18:20:29 +01:00
Tom Christie
028851bfa1 Fix up tests and examples after refactoring 2011-04-27 18:07:28 +01:00
markotibold
116a9ee824 Stole some code from djangorestframework/runtests/runcoverage.py so that coverage is also implemented for the examples. Because Jenkins looks for a coverage.xml file for all defeined projects in tox.ini we need it to pass the tests. 2011-04-27 15:07:25 +02:00
markotibold
391560e69c The test was bad. It expected 11 snippets while the view made sure (as designed) that there would not be more than 10 snippets stored on disk. 2011-04-27 14:29:59 +02:00
markotibold
31bfdbeb1a reverse on a a sorted list which was laerady reversed is rather pointless :) 2011-04-27 14:28:48 +02:00
markotibold
9473d17dd6 Omitting all the superfluous tests. Later on we might want a nicer way to specify which apps to test, because they are now hardcoded in runtests.py. (Listdir doesn't do the trick, tried that already :-) ) 2011-04-27 13:40:46 +02:00
tom christie tom@tomchristie.com
3d15adaeb1 Fixes #35 - Import json from django's built-in package (Does cleverness in determing best lib to use) 2011-04-26 20:20:31 +01:00
Tom Christie
762a52edde Fix some compat issues with json/simplejson 2011-04-25 04:50:28 +01:00
tom christie tom@tomchristie.com
8845b281fe Only use xmlrunner if running under hudson 2011-03-30 21:39:38 +01:00
Tom Christie
3acedec771 Fix some examples 2011-03-22 22:48:59 +00:00
markotibold
b4a076c822 fixing compat with py25 2011-03-20 11:56:43 +01:00
markotibold
d866f2177e fix compat with python 2.5 2011-03-20 10:37:38 +01:00
markotibold
e3b08c7f74 All should work fine now on jenkins. For some reason Tox with jenkins and env names of the form platform-djangoversion-examples results in an OSError Permission denied. No clue why. 2011-03-20 01:52:18 +01:00
markotibold
d168f42b13 testing jenkins 2011-03-20 01:34:24 +01:00
markotibold
9215197327 Adding examples to tox. Appears quite useful cause some example tests are broken. 2011-03-19 03:04:22 +01:00
markotibold
ecb82b0318 Refactoring and added another test for blog-posts. Finally got eclipse setup properly with virtualenvs (code analysis). Also I think I get Bitbuckets workflow now. 2011-03-11 12:47:16 +01:00
tom christie tom@tomchristie.com
9ed34be766 markos pygments tests 2011-03-10 08:12:50 +00:00
markotibold
f7f001542a tests.py: the response needed json deserialization. I guess this is the default serialization for responses.
views.py: Implements #28 Pygments examples should be datetime sorted
2011-03-09 10:39:45 +01:00
tom christie tom@tomchristie.com
c25f8f8427 fix #27 2011-03-09 08:50:56 +00:00
markotibold
f88d8193a8 Test implemented for #28 Pygments examples should be datetime sorted
models.py is needed if we want to put tests in tests.py (see first line of models.py)
2011-03-09 00:26:20 +01:00