Make GUI more EAC-like
This commit is contained in:
@@ -277,6 +277,16 @@ def _make_ui_app(tmp_path):
|
||||
app.track_bar = FakeProgressBar()
|
||||
app.release_store = FakeListStore()
|
||||
app.track_store = FakeListStore()
|
||||
app.track_columns = {
|
||||
"number": 0,
|
||||
"status": 1,
|
||||
"artist": 2,
|
||||
"title": 3,
|
||||
"length": 4,
|
||||
"test_crc": 5,
|
||||
"copy_crc": 6,
|
||||
"accuraterip": 7,
|
||||
}
|
||||
app.release_view = FakeReleaseView(app.release_store)
|
||||
app.release_details = FakeLabel()
|
||||
app.info_labels = {key: FakeLabel() for key in [
|
||||
@@ -305,6 +315,7 @@ def _make_ui_app(tmp_path):
|
||||
"_set_running_state",
|
||||
"_update_release_store",
|
||||
"_update_track_store",
|
||||
"_set_track_field",
|
||||
"_update_release_details",
|
||||
"_update_rip_task_progress",
|
||||
"_finish_rip",
|
||||
@@ -390,7 +401,8 @@ def test_release_selection_and_progress_updates(monkeypatch, tmp_path):
|
||||
gui.WhipperGui._finish_rip(app, 0, "Done")
|
||||
|
||||
assert app.current_release is metadata
|
||||
assert app.track_store[0][1] == "Track Artist"
|
||||
assert app.track_store[0][2] == "Track Artist"
|
||||
assert app.track_store[0][1].startswith("Encoding")
|
||||
assert app.release_details.get_text().startswith("Artist: Artist")
|
||||
assert app.overall_bar.fraction == 1.0
|
||||
assert app.track_bar.fraction == 1.0
|
||||
|
||||
Reference in New Issue
Block a user