diff --git a/tests/csv.t b/tests/csv.t index 0378f51..9ff45b0 100755 --- a/tests/csv.t +++ b/tests/csv.t @@ -144,6 +144,34 @@ class TestCSV(unittest.TestCase): output = lib.run(cmd, stdin=self.pwd) self.validate_vertbar(output) + def test_firefox_144_default(self): + test = os.path.join(self.test, "test_profile_firefox_144") + + cmd = lib.get_script() + [test, "--format", "csv"] + output = lib.run(cmd, stdin=self.pwd) + self.validate_default(output) + + def test_firefox_144_tabular(self): + test = os.path.join(self.test, "test_profile_firefox_144") + + cmd = lib.get_script() + [test, "--format", "tabular"] + output = lib.run(cmd, stdin=self.pwd) + self.validate_tabular(output) + + def test_firefox_144_semicol(self): + test = os.path.join(self.test, "test_profile_firefox_144") + + cmd = lib.get_script() + [test, "--format", "csv", "--csv-delimiter", ";", "--csv-quotechar", "'"] + output = lib.run(cmd, stdin=self.pwd) + self.validate_semicol(output) + + def test_firefox_144_vertbar(self): + test = os.path.join(self.test, "test_profile_firefox_144") + + cmd = lib.get_script() + [test, "--format", "csv", "--csv-delimiter", "\t", "--csv-quotechar", "|"] + output = lib.run(cmd, stdin=self.pwd) + self.validate_vertbar(output) + @unittest.skipIf(lib.platform == "Windows", "Windows DLL isn't backwards compatible") def test_firefox_nopassword_46_default(self): diff --git a/tests/direct_profile.t b/tests/direct_profile.t index e96480f..1400985 100755 --- a/tests/direct_profile.t +++ b/tests/direct_profile.t @@ -52,6 +52,11 @@ class TestDirectProfilePass(unittest.TestCase): "test_profile_firefox_59") self.run_firefox_with_password() + def test_firefox_144(self): + self.test = os.path.join(lib.get_test_data(), + "test_profile_firefox_144") + self.run_firefox_with_password() + def test_firefox_non_ascii(self): self.test = os.path.join(lib.get_test_data(), "test_profile_firefox_LЮшр/") diff --git a/tests/json.t b/tests/json.t index 1e60ca1..f04d369 100755 --- a/tests/json.t +++ b/tests/json.t @@ -51,6 +51,13 @@ class TestJSON(unittest.TestCase): output = lib.run(cmd, stdin=self.pwd, stderr=sys.stderr) self.validate_default(output) + def test_firefox_144_default(self): + test = os.path.join(self.test, "test_profile_firefox_144") + + cmd = lib.get_script() + [test, "--format", "json"] + output = lib.run(cmd, stdin=self.pwd, stderr=sys.stderr) + self.validate_default(output) + @unittest.skipIf(lib.platform == "Windows", "Windows DLL isn't backwards compatible") def test_firefox_nopassword_46_default(self): diff --git a/tests/list_single_profile.t b/tests/list_single_profile.t index bee4fc7..b497cc0 100755 --- a/tests/list_single_profile.t +++ b/tests/list_single_profile.t @@ -42,6 +42,10 @@ class TestSingleProfile(unittest.TestCase): self.output_data = "list_single_59" self.listing_from_single_profile() + def test_firefox_144(self): + self.test_profile = "test_profile_firefox_144" + self.output_data = "list_single_144" + self.listing_from_single_profile() if __name__ == "__main__": from simpletap import TAPTestRunner diff --git a/tests/non_interactive_choice.t b/tests/non_interactive_choice.t index 1c00b69..eed25fb 100755 --- a/tests/non_interactive_choice.t +++ b/tests/non_interactive_choice.t @@ -43,6 +43,13 @@ class TestNonInteractiveChoice(unittest.TestCase): out = lib.run(cmd, stdin=pwd) self.validate(out) + def test_firefox_144(self): + cmd = lib.get_script() + [lib.get_test_data(), "-nc", "7"] + pwd = lib.get_password() + + out = lib.run(cmd, stdin=pwd) + self.validate(out) + @unittest.skipIf(lib.platform == "Windows", "Windows DLL isn't backwards compatible") def test_firefox_nopass_46(self): diff --git a/tests/profile_ini.t b/tests/profile_ini.t index 713313e..0b96d0d 100755 --- a/tests/profile_ini.t +++ b/tests/profile_ini.t @@ -50,6 +50,14 @@ class TestProfileIni(unittest.TestCase): output = lib.run(cmd, stdin=payload) self.validate(output) + def test_firefox_144(self): + cmd = lib.get_script() + [self.test] + choice = "7" + payload = '\n'.join((choice, self.pwd)) + + output = lib.run(cmd, stdin=payload) + self.validate(output) + def test_firefox_non_ascii(self): cmd = lib.get_script() + [self.test] choice = "5" diff --git a/tests/test_data/outputs/list_single_144.output b/tests/test_data/outputs/list_single_144.output new file mode 100644 index 0000000..08887b9 --- /dev/null +++ b/tests/test_data/outputs/list_single_144.output @@ -0,0 +1,3 @@ +- WARNING - profile.ini not found in test_data/test_profile_firefox_59 +- WARNING - Continuing and assuming 'test_data/test_profile_firefox_59' is a profile location +- ERROR - Listing single profiles not permitted. diff --git a/tests/test_data/outputs/list_single_59.output b/tests/test_data/outputs/list_single_59.output index 08887b9..6af8a5f 100644 --- a/tests/test_data/outputs/list_single_59.output +++ b/tests/test_data/outputs/list_single_59.output @@ -1,3 +1,3 @@ -- WARNING - profile.ini not found in test_data/test_profile_firefox_59 -- WARNING - Continuing and assuming 'test_data/test_profile_firefox_59' is a profile location +- WARNING - profile.ini not found in test_data/test_profile_firefox_144 +- WARNING - Continuing and assuming 'test_data/test_profile_firefox_144' is a profile location - ERROR - Listing single profiles not permitted.