Added method to get package as bytes object. I used this to build a package on a server and send back to client for download. Includes unit test that verifies bytes package is still a valid anki package.
Also, two unit tests were failing when I had cloned the repo - both were from trying to unpack self.check_media() instead of accessing properties on the object. Those two are now fixed
Added method to get package as bytes object. I used this to build a package on a server and send back to client for download. Includes unit test that verifies bytes package is still a valid anki package.
Also, two unit tests were failing when I had cloned the repo - both were from trying to unpack
self.check_media()
instead of accessing properties on the object. Those two are now fixed