changed variable name from total_tracks to track_count, also fixed linter errors
This commit is contained in:
parent
9f183cfc35
commit
e7901db637
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
-------
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue