File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 passwordPath = "${ pkgs . writeText "lidarr-password" "testpassword123" } " ;
3333 } ;
3434 apiKeyPath = "${ pkgs . writeText "lidarr-apikey" "5678efgh5678efgh5678efgh5678efgh" } " ;
35+ delayProfiles = [
36+ {
37+ enableUsenet = true ;
38+ enableTorrent = true ;
39+ preferredProtocol = "torrent" ;
40+ usenetDelay = 0 ;
41+ torrentDelay = 360 ;
42+ bypassIfHighestQuality = true ;
43+ bypassIfAboveCustomFormatScore = false ;
44+ minimumCustomFormatScore = 0 ;
45+ order = 2147483647 ;
46+ tags = [ ] ;
47+ id = 1 ;
48+ }
49+ ] ;
3550 } ;
3651 } ;
3752
110125 assert profiles_list[0]['id'] == 1, "Expected default delay profile with id=1"
111126 assert profiles_list[0]['enableUsenet'] == True, "Expected enableUsenet=true"
112127 assert profiles_list[0]['enableTorrent'] == True, "Expected enableTorrent=true"
113- assert profiles_list[0]['preferredProtocol'] == 'usenet ', "Expected preferredProtocol=usenet "
128+ assert profiles_list[0]['preferredProtocol'] == 'torrent ', "Expected preferredProtocol=torrent "
114129 assert profiles_list[0]['usenetDelay'] == 0, "Expected usenetDelay=0"
115130 assert profiles_list[0]['torrentDelay'] == 360, "Expected torrentDelay=360"
116131 assert profiles_list[0]['order'] == 2147483647, "Expected order=2147483647"
Original file line number Diff line number Diff line change 3232 passwordPath = "${ pkgs . writeText "radarr-password" "testpassword123" } " ;
3333 } ;
3434 apiKeyPath = "${ pkgs . writeText "radarr-apikey" "abcd1234abcd1234abcd1234abcd1234" } " ;
35+ delayProfiles = [
36+ {
37+ enableUsenet = true ;
38+ enableTorrent = true ;
39+ preferredProtocol = "torrent" ;
40+ usenetDelay = 0 ;
41+ torrentDelay = 360 ;
42+ bypassIfHighestQuality = true ;
43+ bypassIfAboveCustomFormatScore = false ;
44+ minimumCustomFormatScore = 0 ;
45+ order = 2147483647 ;
46+ tags = [ ] ;
47+ id = 1 ;
48+ }
49+ ] ;
3550 } ;
3651 } ;
3752
110125 assert profiles_list[0]['id'] == 1, "Expected default delay profile with id=1"
111126 assert profiles_list[0]['enableUsenet'] == True, "Expected enableUsenet=true"
112127 assert profiles_list[0]['enableTorrent'] == True, "Expected enableTorrent=true"
113- assert profiles_list[0]['preferredProtocol'] == 'usenet ', "Expected preferredProtocol=usenet "
128+ assert profiles_list[0]['preferredProtocol'] == 'torrent ', "Expected preferredProtocol=torrent "
114129 assert profiles_list[0]['usenetDelay'] == 0, "Expected usenetDelay=0"
115130 assert profiles_list[0]['torrentDelay'] == 360, "Expected torrentDelay=360"
116131 assert profiles_list[0]['order'] == 2147483647, "Expected order=2147483647"
Original file line number Diff line number Diff line change 3232 passwordPath = "${ pkgs . writeText "sonarr-password" "testpassword123" } " ;
3333 } ;
3434 apiKeyPath = "${ pkgs . writeText "sonarr-apikey" "0123456789abcdef0123456789abcdef" } " ;
35+ delayProfiles = [
36+ {
37+ enableUsenet = true ;
38+ enableTorrent = true ;
39+ preferredProtocol = "torrent" ;
40+ usenetDelay = 0 ;
41+ torrentDelay = 360 ;
42+ bypassIfHighestQuality = true ;
43+ bypassIfAboveCustomFormatScore = false ;
44+ minimumCustomFormatScore = 0 ;
45+ order = 2147483647 ;
46+ tags = [ ] ;
47+ id = 1 ;
48+ }
49+ ] ;
3550 } ;
3651 } ;
3752
120135 assert profiles_list[0]['id'] == 1, "Expected default delay profile with id=1"
121136 assert profiles_list[0]['enableUsenet'] == True, "Expected enableUsenet=true"
122137 assert profiles_list[0]['enableTorrent'] == True, "Expected enableTorrent=true"
123- assert profiles_list[0]['preferredProtocol'] == 'usenet ', "Expected preferredProtocol=usenet "
138+ assert profiles_list[0]['preferredProtocol'] == 'torrent ', "Expected preferredProtocol=torrent "
124139 assert profiles_list[0]['usenetDelay'] == 0, "Expected usenetDelay=0"
125140 assert profiles_list[0]['torrentDelay'] == 360, "Expected torrentDelay=360"
126141 assert profiles_list[0]['order'] == 2147483647, "Expected order=2147483647"
You can’t perform that action at this time.
0 commit comments