Commit Graph

59 Commits

Author SHA1 Message Date
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
markotibold
32be058195 Implemented test for blog-post rotation.
Had to turn off existing tests inside tests.py because they seem broken:(
2011-03-08 21:54:00 +01:00
markotibold
177e666fc2 BlogPosts > 10 rotation implemeneted
Latest Modelresource example is broken. Required attribute should be set to form, not model. Is fixed.
2011-03-06 13:26:19 +01:00
tom christie tom@tomchristie.com
60206e5288 ./examples/modelresourceexample/models.py 2011-03-03 09:02:41 +00:00
tom christie tom@tomchristie.com
67c48f758f Fix kwargs in url conf to be more consistent, also fixes broken blog posts example (every blog post showed all comments) 2011-02-19 17:55:32 +00:00
tom christie tom@tomchristie.com
d8285c2d49 Fix status import 2011-02-19 13:54:55 +00:00
tom christie tom@tomchristie.com
57b3a372f2 Move status codes into seperate module 2011-02-19 10:47:26 +00:00
tom christie tom@tomchristie.com
805aa03ec1 Yowzers. Final big bunch of refactoring for 0.1 release. Now support Django 1.3's views, admin style api is all polished off, loads of tests, new test project for running the test. All sorts of goodness. Getting ready to push this out now. 2011-02-19 10:26:27 +00:00
tom christie tom@tomchristie.com
a8bcb2edc6 Missing import 2011-02-06 22:28:03 +00:00
tom christie tom@tomchristie.com
4e15632875 Updated resourceexample with seperate form.py 2011-02-01 23:07:55 +00:00
tom christie tom@tomchristie.com
6ce5b643fb Added resourceexample, moved simpleexample to modelresourceexample 2011-02-01 22:37:51 +00:00
tom christie tom@tomchristie.com
e198165989 Tests for MSIE accept header munging 2011-02-01 21:05:49 +00:00
tom christie tom@tomchristie.com
9024c2e94e Going live 2011-01-31 08:41:21 +00:00
tom christie tom@tomchristie.com
42f2f9b40d Rename to django-rest-framework, get simpleexample working 2011-01-30 18:30:39 +00:00
tom christie tom@tomchristie.com
8a470f031e Minor changes to examples and docs 2011-01-30 16:51:06 +00:00
tom christie tom@tomchristie.com
250ab0f609 Lots of docs, trying to tidy up examples... 2011-01-30 11:00:20 +00:00