storytracker icon indicating copy to clipboard operation
storytracker copied to clipboard

obj.archive_path doesn't exist on ArchivedURL when we create it with open_archive_filepath

Open palewire opened this issue 9 years ago • 0 comments

Coul there be an exists tests in the __init__ or maybe just allow it to be set automatically when the class is instantiated inside open_archive_filepath.

            path = os.path.join(self.this_dir, "bin/storytracker-archive")
            cmd2 = "%s %s --do-not-compress --output-dir=%s" % (
                path, self.simple_url, self.tmpdir
            )
            code2, path2, err2 = Command(cmd2).run(timeout=3)
            obj2 = storytracker.open_archive_filepath(path2)
            # If you ran obj2.archive_path right here it would return None when the file exists
            self.assertTrue(os.path.exists(path2))
            os.remove(path2)

palewire avatar Jul 21 '14 06:07 palewire