summaryrefslogtreecommitdiffstats
path: root/devel
AgeCommit message (Collapse)AuthorFilesLines
2019-03-19reporead: Delete old FlagRequests when deleting package from repoJohannes Löthberg1-0/+5
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2019-02-24Revert "rewrite logic to put some key at the beginning of the OrderedDict"Jelle van der Waa1-3/+7
This reverts commit adaa6d64c4466cff986e695d9d69d51a4d05ca59. old is undefined and therefore the code is broken.
2019-02-09tests: add test for pgp_import keysJelle van der Waa1-1/+35
Add a test to check the pgp_import functionality with one key, by patching call_pgp so there is no need of a local pacman keyring.
2019-02-09Fix also call_gpg's outputFelix Yan1-1/+1
2019-02-01remove unecessary list callsAleksandar Trifunovic3-5/+5
2019-02-01rewrite logic to put some key at the beginning of the OrderedDictAleksandar Trifunovic1-7/+3
2019-01-28switch to python3's buildin mockJelle van der Waa2-2/+2
Instead of using a python module use the build-in mock and remove the module from requirements.txt
2019-01-21Update migrations for Python 3Jelle van der Waa2-17/+35
2019-01-21Update django reverse importJelle van der Waa1-1/+1
2019-01-21In Python 3.2 assertItemsEqual is replaced by assertCountEqualJelle van der Waa1-1/+1
2019-01-21Refactor Python 3 __unicode__ to __str__Frank Vanderham1-4/+4
In Python 3 for Django, class method __unicode__ must be changed to __str__. This commit replaces all models that use __unicode__ to __str__.
2019-01-21main: run 2to3Jelle van der Waa6-13/+13
2019-01-21devel: switch to force_textJelle van der Waa1-2/+2
2019-01-21Remove all squashed migrationsJelle van der Waa3-134/+0
this makes it easier to upgrade to Python 3 since less on_delete lines have to be fixed.
2018-12-16Merge pull request #154 from jelly/squashmigrationsjelle van der Waa1-0/+115
squash all migrations
2018-11-30devel: fix class name in testJelle van der Waa1-1/+1
2018-11-30devel: add pgp_import basic testJelle van der Waa1-0/+12
2018-11-23deve: test listing actual developersJelle van der Waa1-1/+10
2018-11-20devel: Add test for unsupported architectureJelle van der Waa1-1/+6
2018-11-17Squash all migrationsJelle van der Waa1-0/+115
2018-11-17Fix Foreignkey implicit on_delete on django < 2.0Jelle van der Waa1-5/+5
Foreignkey used to implicitly be on_delete=models.CASCADE and has to be explicit now.
2018-11-17Using user.is_authenticated() as a method is deprecatedJelle van der Waa1-1/+1
Use is_authenticated as an attribute.
2018-11-02Add retire_user commandJelle van der Waa2-0/+140
2018-09-23devel: Add more coverage for devel.utilsJelle van der Waa1-0/+14
2018-08-12devel: Add test for rematch_developersJelle van der Waa1-0/+14
2018-07-29Add tests for devel clocksJelle van der Waa1-0/+33
2018-07-13devel: reporead remove old flagrequestsJelle van der Waa2-2/+57
When updating a package in our repository remove any old 'flagged out of date' requests.
2018-05-19Replace deprecated method warn() with warning()Frank Vanderham1-2/+2
Replaced the deprecated logger.warn() with logger.warning(). This was causing pylint to return code 4.
2018-04-20Fix the StaffGroup queryGiancarlo Razzolini1-1/+1
Due to changes to Django 1.11, this didn't return the object. Fix to get the object instead of the queryset.
2018-04-08treewide: context must be a dict rather than ContextJelle van der Waa1-3/+3
Passing Context has been removed in Django 11, a dict should rather be passed.
2018-04-08devel: Templatetest should be a SimpleTestJelle van der Waa1-3/+2
The test uses database queries and should therefore be a TestCase.
2018-04-08Update urls.py to non relative importsJelle van der Waa1-1/+1
2018-04-08devel/tests/test_user: Fix tests to now expect a relative URLJohannes Löthberg1-3/+3
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08Fix reporead test for new error messageJohannes Löthberg1-1/+1
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08Change urls.py from patterns to list of url()Johannes Löthberg1-13/+16
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2018-04-08devel: update management commands to django 1.10Jelle van der Waa2-0/+6
2018-04-08rematch_developers: Update to Django 1.10Jelle van der Waa1-4/+4
Make rematch_developers compatible with Django 1.10 by switching to a BaseCommand class.
2018-04-08Remove update_types_permissions management commandJelle van der Waa1-25/+0
Remove the management command which reloads permissions for specified apps or all apps if no args are specified. This management command looks broken since create_permissions has verbosity as it's second parameter and not a list of models.
2018-04-08Remove unused importJelle van der Waa1-1/+0
2018-04-08reporead: Fix compatibility with Django 1.9Jelle van der Waa1-7/+15
Django 1.9 removed the option_list and requires an add_arguments to be overloaded to specify the arguments.
2018-03-26devel: tests visitting reports pagesJelle van der Waa1-0/+60
Add a simple test to fetch the reports pages in /devel and verify that the http status is ok.
2018-01-22Mirror tests (#78)release_2018-01-22jelle van der Waa1-0/+12
* mirrors: Move tests to mirrors/tests Move the tests to separate files in mirrors/tests and expand the model tests with tests for the Mirror class. * Add CheckLocation test * mirrors: Add tests for template filters Include tests for the filters used in the mirrors views. * devel: Add tests for template filter in_group Include a test for a simple case of the in_group filter.
2017-11-07devel: Update command example to x86_64Jelle van der Waa1-1/+1
2017-08-28devel: remove unused variables/importsJelle van der Waa2-3/+1
2017-08-25devel: Add reporead testJelle van der Waa4-2/+45
Add a test for reporead import database functionality. Move tests for devel to a separate directory and depend on mock for patching the logging functonality. (Included by default in Python 3)
2017-08-23Merge pull request #50 from jelly/refactorAngel Velásquez1-1/+1
Refactor and introduce Pylint to travisci
2017-07-15devel: fix /devel/admin_logJelle van der Waa2-1/+7
Since Django 1.8 each_context requires a request argument.
2017-07-01Filter arch-dev mailing list for non-devsJelle van der Waa2-0/+7
Hide the arch-dev mailing list archives for non developers.
2017-07-01Port xrange to rangeJelle van der Waa1-1/+1
xrange is removed in Python 3.
2017-06-14Use a list and a groups filter to aid readability and avoid using QGiancarlo Razzolini1-3/+4