Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

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

Open
palewire opened this issue Jul 21, 2014 · 0 comments
Labels

Comments

@palewire
Copy link
Owner

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 palewire added the bug label Jul 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant