Commit graph

1023 commits

Author SHA1 Message Date
Emil Stenström
176574a9cc Add component_dependencies template tag. 2015-06-14 14:29:20 +02:00
Emil Stenström
33b1930ed5 Dependencies are the same for all instances, so convert to classmethod. 2015-06-14 14:28:43 +02:00
Emil Stenström
143918e2cf Move django bootstrapping to separate file so it can be reused between test modules. 2015-06-14 14:16:50 +02:00
Emil Stenström
d3261ca50a Add link to Travis CI build. 2015-06-14 12:57:44 +02:00
Emil Stenström
92d3e58f72 Add Travis CI badge. 2015-06-14 12:56:01 +02:00
Emil Stenström
f35f2063ed Merge pull request #1 from EmilStenstrom/ci
Setup Travis CI to test against both Python 2 and Python 3.
2015-06-14 12:27:23 +02:00
Emil Stenström
41122d1592 Move environment setup to the module to get Travis CI to pass. 2015-06-14 12:23:12 +02:00
Ryan Hiebert
48e6ea1e12 Add Travis CI configuration 2015-06-13 13:42:28 -05:00
Ryan Hiebert
8b119e1e30 Add documentation of the process to run tests 2015-06-13 13:42:27 -05:00
Ryan Hiebert
bc2950e1b4 Use tox to test 2015-06-13 13:42:27 -05:00
Ryan Hiebert
f219370be2 Use dictionary to compare registry
The registry is a dictionary, so comparing items() has a couple of
problems:

1. The order of a dictionary is unstable, so it may not turn out as
   expected.
2. items() returns a list in Python 2, but a dict_items in Python 3,
   which makes the comparison fail.
2015-06-13 13:42:27 -05:00
Emil Stenström
6492081b64 Add render() and render_dependencies() to Compoent. 2015-06-12 22:15:09 +02:00
Emil Stenström
972f99af05 Make test slightly more interesting. 2015-06-11 21:28:50 +02:00
Emil Stenström
31261ece08 Add a basic Component class. 2015-06-11 21:14:21 +02:00
Emil Stenström
df22a4049f Move registry to separate file. 2015-06-11 21:11:13 +02:00
Emil Stenström
ebf4ac1d20 Add way to unregister components. 2015-06-11 20:52:46 +02:00
Emil Stenström
00bd40aaaf Don't allow registering the same component twice. 2015-06-11 20:47:35 +02:00
Emil Stenström
313852ce21 A simple ComponentRegistry to store components. 2015-06-11 20:42:16 +02:00
Emil Stenström
22b00a4a62 Simple test runner that discovers tests. 2015-06-11 20:40:47 +02:00
Emil Stenström
28f243d50a Require Django, some old version. 2015-06-11 20:40:06 +02:00
Emil Stenström
0c5ada8eb7 Add GitHubs default gitignore. 2015-06-11 19:58:44 +02:00
Emil Stenström
0f69d431ba First description of how the django-components could work. 2015-06-11 19:35:31 +02:00
Emil Stenström
b46b1d87f7 Initial commit 2015-06-11 19:23:48 +02:00