aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-11-07update dependenciesDaniel Schadt
The most "painful" one was Pydantic V2, not because it didn't work, but because I wanted to do it right and not use the deprecated methods.
2023-09-14fix testsDaniel Schadt
2023-08-30fix upload testDaniel Schadt
The new favourite icon messes up the old HTML, so we need to adjust the test's expectations.
2023-08-30add test for favourite on detail pageDaniel Schadt
2023-08-09include email in user fingerprintDaniel Schadt
2023-08-02make tileproxy test less flakyDaniel Schadt
2023-06-29tileproxy: use caplog in the testDaniel Schadt
See if it works, it might be handy for other tests in the future as well.
2023-06-22add preliminary tileproxy testDaniel Schadt
2023-06-05fix lintDaniel Schadt
2023-05-31add test for verification mail resendingDaniel Schadt
2023-05-25Merge branch 'fietsctl-commands'Daniel Schadt
2023-05-25move "sort" button on home page upDaniel Schadt
This looks better than having the header line and the sort button below each other.
2023-05-13add a test for the new elevation jump transformerDaniel Schadt
2023-05-12add unit tests for util.human_sizeDaniel Schadt
2023-04-13replace bleach with nh3Daniel Schadt
See https://github.com/mozilla/bleach/issues/698 nh3 is a small wrapper around https://crates.io/crates/ammonia - more Rust code in Fietsboek! \o/ The default seems to be to strip unknown tags instead of replace them with htmlentities, which is fine. Then the <script> tags are completely gone.
2023-04-01remove import across toplevelDaniel Schadt
Python seems to do fine, but pylint complains (probably rightfully, since the tests do not represent packages). We lose type hinting for the playwright_helper, but there's probably a better way to do it in the future.
2023-04-01fix isolated running of unit testsDaniel Schadt
They caused issues because they might not have created the database tables or the data directory. Since the cleanup job runs globally after every test, it should take that into consideration and not error out.
2023-04-01add some very basic tests for profilesDaniel Schadt
I'd like to have more, but this is a start (and already caught some errors, see the last two commits).
2023-04-01fix round_to_multiple for second-level accuracyDaniel Schadt
It was ovious that this is broken when you try to round "0s" to second-level granularity, and you end up with "1s". The problem comes from the fact that we use the integer divison when checking whether we should round up or down, but then also use strict inequality. To fix this, we now also round down if the second_offset is equal to the halfway point (which in the case of second-level granularity is 0).
2023-03-31hide ugliness of tile url functionDaniel Schadt
We basically do the same hacky trick in two different places, so maybe we should put it into a separate function, test it, and if a better implementation arises, swap it.
2023-03-07wait until accordion is expandedDaniel Schadt
Currently, the test seems flaky on CI due to playwright._impl._api_types.Error: Clicking the checkbox did not change its state Maybe this is the change that will fix it?
2023-03-07tests: use .check() instead of .click()Daniel Schadt
This gets the intent across clearer
2023-03-07disable cache for transformer testsDaniel Schadt
2023-03-07Merge branch 'transformers'Daniel Schadt
2023-03-07switch order of expect & assertDaniel Schadt
While it shouldn't change the outcome of the test, it might make the test less flaky, as the expect call will wait until the page is loaded - which also indicates that the data is updated. Without this, the test depends on the backend being "fast enough" with applying the transformation.
2023-03-07also test transformers when editing a trackDaniel Schadt
2023-03-04fix deprecated SQLAlchemy functionsDaniel Schadt
Getting ready for SQLAlchemy 2.0!
2023-03-04add tests for the new transformerDaniel Schadt
2023-02-08fix transformer handling when uploading a fileDaniel Schadt
2023-01-19add a small test for maintenance modeDaniel Schadt
2023-01-03add tests for adding/removing friendsDaniel Schadt
2022-12-29start to move out high-level actionsDaniel Schadt
This is code that needs to be repeated in possibly several places (website, API, tests), so it makes sense to have those "high level actions" a bit abstracted. edit.edit_images was already doing that to a certain degree, but the code shouldn't have stayed in the view.
2022-12-29add playwright tests for the sharing functionalityDaniel Schadt
2022-12-22add more tests for the home pageDaniel Schadt
2022-12-22reorder playwright helper structureDaniel Schadt
To add more playwright tests and to cut down on the duplicated code, the helper methods have been put into a small class. This way, we don't have to add 100 pytest fixtures.
2022-12-20fix track deletion permissionDaniel Schadt
2022-12-15fix lintsDaniel Schadt
2022-12-15fix integration & playwright testsDaniel Schadt
2022-12-14add test for track browsingDaniel Schadt
2022-12-13add a test for editing tracksDaniel Schadt
2022-12-10start with playwright testsDaniel Schadt
2022-12-06add some tests for the registration formDaniel Schadt
2022-08-13fix testsDaniel Schadt
Now that the filtering is done via SQL, it is not enough for the user and the objects to be in the session - they need to be in the database, similar to the added tracks. Note that it was not entirely necessary in this case, since the tracks are public, but it provides the proper functionality in the future.
2022-07-24add first basic tests for synthetic tracksDaniel Schadt
2022-07-18give tests a temporary data dirDaniel Schadt
2022-07-17run pylint on the test files as wellDaniel Schadt
2022-07-17Merge branch 'multi-download'Daniel Schadt
2022-07-17add tests for archive downloadDaniel Schadt
2022-07-16remove MyTourbook timezone guessingDaniel Schadt
It turns out that the mt:TourStartTime is also given in UTC, and therefore cannot be used to get the timezone offset. The problem was that my local computer's timezone was the same as the tour timezone, so by the magic of Python's datetime.datetime.fromtimestamp (and the date CLI util), I did not notice that the timestamp actually represents UTC. Sadly, it currently looks like there is no way to extract the time zone from a MyTourbook export.
2022-07-11add integration tests for uploadingDaniel Schadt