hbmartin commited on
Commit
0d5b7aa
·
1 Parent(s): c664757

formatting

Browse files
Files changed (2) hide show
  1. .flake8 +1 -1
  2. tests/test_cli.py +3 -1
.flake8 CHANGED
@@ -1,5 +1,5 @@
1
  [flake8]
2
  ignore = E231,E203,W503,Q000,WPS111,WPS305,WPS348,WPS602,D400,DAR201,S101,DAR101,C812,D104,I001,WPS306,WPS214,D401,WPS229,WPS420,WPS230,WPS414,WPS114,WPS226,WPS442,C819,WPS601,T001,RST304,WPS410,WPS428,A003,A002,I003,WPS221,WPS326,WPS201,S405,DAR301,WPS210,WPS202,WPS213,WPS301,P103,WPS407,WPS432,WPS211,S314,S310,S001,IF100,PT001
3
- max-line-length = 94
4
 
5
  [isort]
 
1
  [flake8]
2
  ignore = E231,E203,W503,Q000,WPS111,WPS305,WPS348,WPS602,D400,DAR201,S101,DAR101,C812,D104,I001,WPS306,WPS214,D401,WPS229,WPS420,WPS230,WPS414,WPS114,WPS226,WPS442,C819,WPS601,T001,RST304,WPS410,WPS428,A003,A002,I003,WPS221,WPS326,WPS201,S405,DAR301,WPS210,WPS202,WPS213,WPS301,P103,WPS407,WPS432,WPS211,S314,S310,S001,IF100,PT001
3
+ max-line-length = 95
4
 
5
  [isort]
tests/test_cli.py CHANGED
@@ -410,7 +410,9 @@ def test_download_audio(youtube, download):
410
  def test_download_audio_none(youtube, download):
411
  # Given
412
  youtube_instance = youtube.return_value
413
- youtube_instance.streams.filter.return_value.order_by.return_value.last.return_value = None
 
 
414
  # When
415
  with pytest.raises(SystemExit):
416
  cli.download_audio(youtube_instance, "filetype", "target")
 
410
  def test_download_audio_none(youtube, download):
411
  # Given
412
  youtube_instance = youtube.return_value
413
+ youtube_instance.streams.filter.return_value.order_by.return_value.last.return_value = (
414
+ None
415
+ )
416
  # When
417
  with pytest.raises(SystemExit):
418
  cli.download_audio(youtube_instance, "filetype", "target")