Beispiel #1
0
 def test_upgrade_to_v2_6_0_dev_1_frozen(self):
     TextOption("setting", "acoustid_fpcalc", "")
     self.config.setting["acoustid_fpcalc"] = r"C:\Program Files\MusicBrainz Picard\fpcalc.exe"
     picard.config_upgrade.IS_FROZEN = True
     upgrade_to_v2_6_0_dev_1(self.config)
     picard.config_upgrade.IS_FROZEN = False
     self.assertEqual("", self.config.setting["acoustid_fpcalc"])
Beispiel #2
0
 def test_upgrade_to_v2_6_0_dev_1_snap(self):
     TextOption("setting", "acoustid_fpcalc", "")
     self.config.setting["acoustid_fpcalc"] = "/snap/picard/221/usr/bin/fpcalc"
     upgrade_to_v2_6_0_dev_1(self.config)
     self.assertEqual("", self.config.setting["acoustid_fpcalc"])
Beispiel #3
0
 def test_upgrade_to_v2_6_0_dev_1_empty(self):
     TextOption("setting", "acoustid_fpcalc", "")
     self.config.setting["acoustid_fpcalc"] = None
     upgrade_to_v2_6_0_dev_1(self.config)
     self.assertEqual("", self.config.setting["acoustid_fpcalc"])