test/plugins/factories/discogs.py
raw| 1 | import factory |
| 2 | |
| 3 | |
| 4 | class AudioTrackFactory(factory.DictFactory): |
| 5 | type_ = "track" |
| 6 | position = "1" |
| 7 | title = "Track" |
| 8 | duration = "" |
| 9 | |
| 10 | |
| 11 | class IndexTrackFactory(factory.DictFactory): |
| 12 | type_ = "index" |
| 13 | title = "Index Track" |
| 14 | position = "" |
| 15 | duration = "" |
| 16 | sub_tracks = factory.List([factory.SubFactory(AudioTrackFactory)]) |
| 17 | |
| 18 | |
| 19 | class HeadingTrackFactory(factory.DictFactory): |
| 20 | type_ = "heading" |
| 21 | title = "Heading Track" |
| 22 | position = "" |
| 23 | duration = "" |