diff --git a/src/ytdl_sub/entries/variables/soundcloud_variables.py b/src/ytdl_sub/entries/variables/soundcloud_variables.py index 6fb51737..45a35755 100644 --- a/src/ytdl_sub/entries/variables/soundcloud_variables.py +++ b/src/ytdl_sub/entries/variables/soundcloud_variables.py @@ -26,7 +26,7 @@ class SoundcloudVariables(EntryVariables): return f"{self.track_number:02d}" @property - def total_tracks(self) -> int: + def track_count(self) -> int: """ Returns ------- diff --git a/tests/unit/entries/test_soundcloud_entries.py b/tests/unit/entries/test_soundcloud_entries.py index 1bf82933..22e7d183 100644 --- a/tests/unit/entries/test_soundcloud_entries.py +++ b/tests/unit/entries/test_soundcloud_entries.py @@ -29,7 +29,7 @@ def is_premiere(): @pytest.fixture() -def total_tracks(): +def track_count(): return 1 @@ -41,7 +41,7 @@ def mock_soundcloud_track_to_dict( track_number, track_number_padded, is_premiere, - total_tracks, + track_count ): return dict( mock_entry_to_dict, @@ -51,7 +51,7 @@ def mock_soundcloud_track_to_dict( "album": title, "sanitized_album": title, "album_year": upload_year, - "total_tracks": total_tracks, + "track_count": track_count, } ) @@ -74,7 +74,7 @@ def validate_soundcloud_track_properties( track_number, track_number_padded, is_premiere, - total_tracks, + track_count, ): def _validate_soundcloud_track_properties(soundcloud_track: SoundcloudTrack): assert validate_entry_properties(soundcloud_track) @@ -83,7 +83,7 @@ def validate_soundcloud_track_properties( assert soundcloud_track.album == title assert soundcloud_track.sanitized_album == title assert soundcloud_track.album_year == upload_year - assert soundcloud_track.total_tracks == total_tracks + assert soundcloud_track.track_count == track_count assert soundcloud_track.is_premiere() == is_premiere return True