| Conditions | 1 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import os |
||
| 23 | def test_integration(): |
||
| 24 | runner = CliRunner() |
||
| 25 | inout = Mock() |
||
| 26 | inout.logo.return_value = 'Logo' |
||
| 27 | inout.input_youtube_url_dialog.return_value = 'https://www.youtube.com/watch?v=gkbJLLW6xKo' |
||
| 28 | inout.interactive_track_info_input_dialog.return_value = \ |
||
| 29 | '1. Gasoline - 0:00' \ |
||
| 30 | '2. Man vs. God - 4:30' \ |
||
| 31 | '3. The Great Liar - 9:56' \ |
||
| 32 | '4. Revolution Cookbook - 14:59' \ |
||
| 33 | '5. All These Happy People - 17:54' \ |
||
| 34 | '6. Your Song - 21:58' \ |
||
| 35 | '7. Let Them Burn - 26:44' \ |
||
| 36 | '8. On Parole - 32:40' \ |
||
| 37 | '9. King of the Circus - 38:04' |
||
| 38 | inout.track_information_type_dialog.return_value = 'Timestamps' |
||
| 39 | inout.album_directory_path_dialog.return_value = os.path.join(os.environ['MUSIC_LIB_ROOT'], 'Planet_of_Zeus/Faith_in_Science') |
||
| 40 | inout.interactive_metadata_dialogs.return_value = {'artist': 'Planet of Zeus', 'album-artist': 'Planet of Zeus', 'album':'Faith in Science', 'year': '2019'} |
||
| 41 | |||
| 42 | result = runner.invoke(main, []) |
||
| 43 | assert result.exit_code == 0 |
||
| 44 |