- 20 Feb, 2021 1 commit
-
-
Important note: Python tests will repeatedly clear out tables that they test against; for this reason, one should always run the shell tests first. The __init__.py file is necessary for coverage to collect data from the tests being run. At this point in FastAPI development, I'd like to encourage a few things going forward: 1. Any time you contribute to the FastAPI codebase, you **must** maintain equal or increased coverage on the overall source. Developers are highly appreciated for adding tests in your specific domain of addition or modification that may be missing coverage. Our goal is 100% coverage, and all newly added files **must** have 100% coverage through tests. 2. All source should be formatted with the autopep8 tool and kept within an 80 column width, with the exception of HTML templates. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 29 Feb, 2020 1 commit
-
-
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 27 Feb, 2020 2 commits
-
-
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
The new schema was generated with sqlacodegen and then manually adjusted to fit schema/aur-schema.sql faithfully, both in the organisation of the code and in the SQL generated by SQLAlchemy. Initializing the database now requires the new tool aurweb.initdb. References to aur-schema.sql have been updated and the old schema dropped. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 12 Aug, 2018 1 commit
-
-
Lukas Fleischer authored
Since commit a7865ef5 (Make the locale directory configurable, 2018-07-22), we need to specify the locale directory in the configuration file. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 17 May, 2018 1 commit
-
-
Lukas Fleischer authored
Add support for translating notification emails and send localized notifications, based on the user's language preferences. Also, update the translations Makefile to add strings from the notification script to the message catalog. Implements FS#31850. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 10 May, 2018 1 commit
-
-
Lukas Fleischer authored
Add a script to periodically remove old IP addresses from the users database. The login IP addresses are stored for spam protection and to prevent from abuse. It is quite unlikely that we ever need the IP address of a user whose last login is more than a week old. It makes sense to remove such IP addresses to protect our users' privacy. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 01 Aug, 2017 1 commit
-
-
Lukas Fleischer authored
In addition to the packages list and the package base list, also create a list of registered user names. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 24 Apr, 2017 1 commit
-
-
Lukas Fleischer authored
Automatically detect Git commit identifiers, shorten them, and make them link to the cgit interface. Implements FS#43290. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 23 Apr, 2017 1 commit
-
-
Lukas Fleischer authored
Instead of converting package comments from plain text to HTML code when they are displayed, do the conversion when the comment is posted and store the rendered result in the database. The conversion itself is done by a Python script which uses Bleach for sanitizing the text. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 03 Mar, 2017 1 commit
-
-
Lukas Fleischer authored
Instead of making all tests fail, error out during initialization if the SQLite schema has not been generated. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 01 Mar, 2017 1 commit
-
-
Lukas Fleischer authored
Allow for automatically converting the schema into a schema that works with SQLite by running `make` from the schema/ subdirectory. Use the new Makefile in the test suite. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 25 Jan, 2017 1 commit
-
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 13 Nov, 2016 1 commit
-
-
Lukas Fleischer authored
The scripts were moved to aurweb/scripts/ in commit 37188603 (Make maintenance scripts installable, 2016-10-17). Update the paths in the test suite accordingly. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 08 Oct, 2016 1 commit
-
-
Lukas Fleischer authored
Move the Git interface scripts from git-interface/ to aurweb/git/. Use setuptools to automatically create wrappers which can be installed using `python3 setup.py install`. Update the configuration files, the test suite as well as the INSTALL and README files to reflect these changes. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 29 Sep, 2016 9 commits
-
-
Lukas Fleischer authored
Add a test to make sure that Trusted Users, who already voted on a proposal, do not receive any reminders. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Instead of only checking whether the notification script is called with the correct parameters, actually invoke the real notify script and check whether proper notifications are generated. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Move and rename the existing git-interface tests such that tests for other scripts can be added easily. In particular, the following changes are made: * Move the existing tests from git-interface/test/ to test/. * Rename t0001-auth.sh to t1100-git-auth.sh. * Rename t0002-serve.sh to t1200-git-serve.sh. * Rename t0003-update.sh to t1300-git-update.sh. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Determine the top-level directory before running tests and make all script paths relative to that directory. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Instead of using relative imports, add support for installing the config and db Python modules to a proper location using setuptools. Change all git-interface scripts to access those modules from the search path. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 18 Sep, 2016 1 commit
-
-
Lukas Fleischer authored
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 05 Aug, 2016 4 commits
-
-
Lukas Fleischer authored
Add tests for common scenarios that should be detected/handled by the update hook. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Add tests for common scenarios that should be detected/handled by the git-serve script. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Test the authentication script with an invalid key type and with a key that does not exist in the database. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Add basic tests for the Git interface. The test suite is based on sharness. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-