<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fietsboek/tests, branch v0.7.0</title>
<subtitle>A web-based GPX track tracker</subtitle>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/'/>
<entry>
<title>replace bleach with nh3</title>
<updated>2023-04-13T18:46:04+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-04-13T18:46:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=c8d3a9d1a926b244aadedb0d1811d8d8d4a4f4c0'/>
<id>c8d3a9d1a926b244aadedb0d1811d8d8d4a4f4c0</id>
<content type='text'>
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 &lt;script&gt; tags are completely
gone.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;script&gt; tags are completely
gone.
</pre>
</div>
</content>
</entry>
<entry>
<title>remove import across toplevel</title>
<updated>2023-04-01T11:17:40+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-04-01T11:17:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=e3b9e0e1de60acb441794c36b1aee55ff8f1d94f'/>
<id>e3b9e0e1de60acb441794c36b1aee55ff8f1d94f</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix isolated running of unit tests</title>
<updated>2023-04-01T11:14:17+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-04-01T11:14:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=78ea2acd5950919ee65960ef8d87359d223a0068'/>
<id>78ea2acd5950919ee65960ef8d87359d223a0068</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>add some very basic tests for profiles</title>
<updated>2023-04-01T11:08:02+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-04-01T11:08:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=e37e056c36272e5f0c0e23bd993290208e14a979'/>
<id>e37e056c36272e5f0c0e23bd993290208e14a979</id>
<content type='text'>
I'd like to have more, but this is a start (and already caught some
errors, see the last two commits).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I'd like to have more, but this is a start (and already caught some
errors, see the last two commits).
</pre>
</div>
</content>
</entry>
<entry>
<title>fix round_to_multiple for second-level accuracy</title>
<updated>2023-04-01T11:05:40+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-04-01T11:05:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=982d6c8cd5ba6ade04683e5699fc9fc170e4c109'/>
<id>982d6c8cd5ba6ade04683e5699fc9fc170e4c109</id>
<content type='text'>
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).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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).
</pre>
</div>
</content>
</entry>
<entry>
<title>hide ugliness of tile url function</title>
<updated>2023-03-31T21:57:59+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-03-31T21:57:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=114274f900904070e941c4a544426b5d9d1267d2'/>
<id>114274f900904070e941c4a544426b5d9d1267d2</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>wait until accordion is expanded</title>
<updated>2023-03-07T22:18:40+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-03-07T22:18:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=95002962eae89bf219a119bbf897a4818981d6bc'/>
<id>95002962eae89bf219a119bbf897a4818981d6bc</id>
<content type='text'>
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?
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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?
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: use .check() instead of .click()</title>
<updated>2023-03-07T21:58:04+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-03-07T21:58:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=48f5e6b56174051a760e74d30bbe3a41a685c7dc'/>
<id>48f5e6b56174051a760e74d30bbe3a41a685c7dc</id>
<content type='text'>
This gets the intent across clearer
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This gets the intent across clearer
</pre>
</div>
</content>
</entry>
<entry>
<title>disable cache for transformer tests</title>
<updated>2023-03-07T19:38:17+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-03-07T19:38:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=e3e526cbdab4f3c7408a846d15ff7d7edfe27016'/>
<id>e3e526cbdab4f3c7408a846d15ff7d7edfe27016</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'transformers'</title>
<updated>2023-03-07T19:17:35+00:00</updated>
<author>
<name>Daniel Schadt</name>
<email>kingdread@gmx.de</email>
</author>
<published>2023-03-07T19:17:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.kingdread.de/cgit.cgi/fietsboek/commit/?id=40a0f2dbed1034ca02fcb83c820f22976601c777'/>
<id>40a0f2dbed1034ca02fcb83c820f22976601c777</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
