Šarūnas Nejus
e671c375f1
Make music_dir a Path, simplify setup
2026-07-14 14:36:12 +01:00
Šarūnas Nejus
364d027371
Define attribute for item paths
2026-07-14 14:36:12 +01:00
Šarūnas Nejus
70174db929
Write playlists inside setUp
2026-07-14 14:36:12 +01:00
Šarūnas Nejus
ea12df17a9
Define write_relative_playlist
2026-07-14 14:36:12 +01:00
Šarūnas Nejus
6586ea82cb
Define write_absolute_playlist
2026-07-14 14:36:12 +01:00
Šarūnas Nejus
f8ed00386e
Define absolute_playlist_path, relative_playlist_path
2026-07-14 14:36:12 +01:00
Sebastian Mohr
54a2bd20e1
Removed This file is part of beets... headers.
2026-06-29 11:20:15 +02:00
Sebastian Mohr
adfb73b66d
Run ruff format
2026-05-20 16:53:06 +02:00
Šarūnas Nejus
1c16b2b308
Replace string concatenation (' + ')
...
- Join hardcoded strings
- Replace concatenated variables with f-strings
2025-08-30 23:10:15 +01:00
Šarūnas Nejus
4a361bd501
Replace format calls with f-strings
2025-08-30 18:42:26 +01:00
Šarūnas Nejus
edd3df99ba
Introduce TestHelper.temp_dir_path
2025-07-09 09:17:14 +01:00
Šarūnas Nejus
9a05d27acf
Replace assertEqual
2024-08-12 08:43:42 +01:00
Šarūnas Nejus
199f3079f2
Use PluginMixin in tests that load plugins manually
...
A constant `preload_plugin` is used to disable loading the plugin in the
`setUp` initialisation, allowing the plugin to be loaded manually by the
tests.
Also added a cleanup instruction to remove listeners from configured
plugins, and removed this logic from several tests.
2024-07-28 18:58:54 +01:00
Šarūnas Nejus
fcff5d72af
Remove def suite TestLoader definitions
2024-07-28 18:58:51 +01:00
Šarūnas Nejus
7d7f16395c
Remove redundant library setUp instructions
2024-07-28 18:58:34 +01:00
Šarūnas Nejus
2d5fd907c3
Remove redundant setup_beets and teardown_beets instructions
2024-07-28 18:58:34 +01:00
Šarūnas Nejus
6c1e26acc9
Replace unittest.TestCase, TestHelper by BeetsTestCase
2024-07-28 18:58:34 +01:00
Šarūnas Nejus
83f101627e
Use common temp_dir for playlist plugin directory
2024-07-17 23:34:16 +01:00
Lars Kruse
508d28f66b
tests: move reusable test-related modules into the beets package
...
External Python packages interfacing beets may want to use an in-memory
beets library instance for testing beets-related code.
The `TestHelper` class is very helpful for this purpose.
Previously `TestHelper` was located in the `test/` directory.
Now it is part of `beets` itself (`beets.test.helper.TestHelper`) and
can be easily imported.
2024-01-15 19:40:57 +01:00
Serene-Arc
a6e5201ff3
Apply formatting tools to all files
...
This is 'the big one', which touches every file so that it all conforms
to the given standard.
2023-10-22 09:53:18 +10:00
Serene-Arc
84c0ab6857
Correctly refactor tests
2023-10-17 19:39:03 +10:00