![](https://programming.dev/pictrs/image/7c6d3e74-32c9-4ac7-a377-6816ee7cfbe1.png)
![](https://lemmy.ml/pictrs/image/h1ChnLuBHr.png)
5·
10 days ago+1 for Pocketbook
Never had any issues with it whatsoever.
The device works great with Calibre.
There is some other functionality that I did not use.
+1 for Pocketbook
Never had any issues with it whatsoever.
The device works great with Calibre.
There is some other functionality that I did not use.
In a similar vein, there’s an old saying: “A lie travels around the globe while the truth is putting on its shoes.”
This. We kinda stumbled on this pattern, and use it to great effect. Simplified code:
@pytest.fixture
def tmpfiles():
with NamedTemporaryFile(suffix=".html") as f:
yield f
# or for paths, which are more suitable for certain tests
# touch them so they exist
@pytest.fixture
def othertmppaths() -> list[Path]:
f1 = Path("...")
f1.touch()
f2 = Path("...")
f2.touch()
yield [f1, f2]
# you could delete them here if needed
f1.unlink()
def test_foo(othertmppaths list[Path]):
result = upload_resource(othertmppaths[0])
assert result.status == 200
The context manager one will properly clean up all files.
E: Pretty website btw
I also played with my kids on lan, and they love it. Had to discipline them a bit to water the plants 😀
The tee
program is also very useful!
With Gitea/Forgejo you can run a local actions executor, which builds the images, pushes to gitea’s image registry, and using a script pulls them on the other side and restarts them. Worked fine in our small startup.