| Age | Commit message (Collapse) | Author |
|
|
|
Especially with all the "list" commands, we now see that we always have
to put some data into the instance. This is cumbersome, especially as we
get to the track commands. Therefore, I added a method to put some data
into the instance -- that also helps to ensure that we properly cascade
things if we delete a user, for example.
Currently, this method only adds two users and two tracks, but I plan to
also add comments and friendship associations.
Further, we can think about re-writing the playwright tests to use this
population as well, instead of the playwright_helper one.
|
|
|
|
|
|
|
|
|
|
Since we don't use parents=True anymore to create the folders (which I
think is good), we now need to ensure that those exist.
So
1. when fietsboek starts up, we create those folders, and
2. when we delete them in the tests, we recreate them.
|
|
|
|
|
|
This doesn't check any content of the PDF, but ensures that running
typst does not produce an error.
|
|
matplotlib procudes a lot of lines for the font manager, which really
clutter the log output for everything else.
|
|
|
|
|
|
|
|
|
|
A lot of time in test_browse was spent retrieving path points and
computing metadata. Why not save it while we still have the path ready?
|
|
|
|
It turns out that adding multiple thousands of track points via the ORM
is quite slow, which is especially noticable in the browse_paged test
(as 50 tracks are added there).
This provides the fast_set_path method, which goes directly to the
database, utilizing the executemany() capability.
On the CI, the gpx-influx decreased test runtime from ~4min to ~18min.
This change should make it much faster again.
|
|
With the values being computed ourselves, they differ a bit from the
previous gpxpy values. Therefore, we adjust the expected values in the
tests.
|
|
|
|
|
|
|
|
We might not always get the IDs as 1 and 2, so we need to adapt.
|
|
Otherwise Postgres does not let us drop the tables and hangs forever
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We added the trailing slash some commits ago.
|
|
|
|
|
|
|
|
|
|
There seems to a new too-many-positional-arguments in addition to
too-many-arguments now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Previously, we had it session-scoped, which meant that the app was
created once for all tests. This doesn't allow us to play with different
settings however, such as disabling account registration or image
uploads and testing that.
Now, the fixtures are module scoped, which means that we still save on
prepare/teardown time a bit, but we're also a bit more flexible. By
making new test modules, we can test different settings there.
|
|
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.
|
|
|
|
The new favourite icon messes up the old HTML, so we need to adjust the
test's expectations.
|
|
|
|
|
|
|