- Dec 14, 2016
-
-
Geert Kapteijns authored
A blank domain throws an error in /theses/. I've also installed factory_boy (pip install -r requirements.txt to get it) and set up a ThesisLinkFactory and a unit tests that tests whether ThesisLink validates for a blank domain field. Not sure if this is exactly how you're supposed to validate a model, but it's a start. First unit test of the project, whoohoo!
-
Geert Kapteijns authored
This is recommended. Also give names like MASTER_THESIS = 'MA' to avoid magic strings and allow for easy reference, e.g. thesis.type = ThesisLink.MASTER_THESIS. This sort of thing helps in maintainability of the codebase, since if we want to change the abbreviation to 'MASTER' for some reason, we have it defined in one place, and not in 100 places in the code.
-
Geert Kapteijns authored
test_forms.py, test_models.py, test_views.py, as per recommendation of the two scoops book.
-
Geert Kapteijns authored
-
Geert Kapteijns authored
-
Geert Kapteijns authored
-
- Dec 13, 2016
-
-
Geert Kapteijns authored
Right now, this only creates a contributor based on a username. But I hope that, in the future, we can populate an entire development database with this command.
-
Geert Kapteijns authored
-
Geert Kapteijns authored
-
Geert Kapteijns authored
- Alter field in_agreement on comment - Alter field in_disagreement on comment - Alter field in_notsure on comment - Alter field is_cor on comment
-
- Dec 12, 2016
-
-
Geert Kapteijns authored
I've opted for hanging indentation foo = long_function_name( var_one, var_two, var_three, var_four) instead of aligning with opening delimiter foo = long_function_name(var_one, var_two, var_three, var_four) because the former makes more sense to me. See https://www.python.org/dev/peps/pep-0008/#indentation
-
- Dec 10, 2016
-
-
Jorran de Wit authored
-
Jorran de Wit authored
-
Jean-Sébastien Caux authored
First pull request :-)
-
Jean-Sébastien Caux authored
-
Jorran de Wit authored
-
- Dec 09, 2016
-
-
Jorran de Wit authored
-
- Dec 08, 2016
-
-
Jorran de Wit authored
-
Jean-Sébastien Caux authored
-
Jean-Sébastien Caux authored
-
- Dec 07, 2016
-
-
Jean-Sébastien Caux authored
-
Jean-Sébastien Caux authored
-
- Dec 06, 2016
-
-
Jean-Sébastien Caux authored
-
- Dec 05, 2016
-
-
Jean-Sébastien Caux authored
-
Jean-Sébastien Caux authored
-
-
Jean-Sébastien Caux authored
-
- Nov 30, 2016
-
-
Mathijs de Bruin authored
Really, don’t!
-
Mathijs de Bruin authored
-
Mathijs de Bruin authored
-
Mathijs de Bruin authored
-
Mathijs de Bruin authored
-
- Nov 29, 2016
-
-
Jean-Sébastien Caux authored
-
Jean-Sébastien Caux authored
-
- Nov 28, 2016
-
-
Jean-Sébastien Caux authored
-
Jean-Sébastien Caux authored
-
- Nov 26, 2016
-
-
Jean-Sébastien Caux authored
-
Jean-Sébastien Caux authored
-
Mathijs de Bruin authored
Instead use something like ReadTheDocs to automatically render & host on every push. https://readthedocs.org/
-
Jean-Sébastien Caux authored
-