6 Commits

Author SHA1 Message Date
David Vierra
2cfc87753c Test: Schematic.testRotate now fails when importing rotated biomes 2013-01-26 23:47:37 -10:00
David Vierra
3095eacaa3 Tests now import pymclevel modules relative to pymclevel. This removes the need to fiddle with PYTHONPATH, so run_tests.sh is removed. 2013-01-07 13:53:10 -10:00
David Vierra
35bbbdc576 Refactor: Change log statements to use log.info() instead of info=log.info; info() 2012-10-31 02:04:05 -10:00
David Vierra
b0ef494546 Test: copyBlocksFrom no longer fails if the requested box is partially out of the source level's bounds.
It should just copy the area within the requested box.
2012-10-31 02:04:04 -10:00
David Vierra
78e45aedfb Refactor: Remove compressedChunks and related methods and data from MCInfdevOldLevel and AnvilChunk
Move MCRegionFile to its own source file.
Remove knowledge of chunk structure from MCRegionFile. Rename loadChunk to readChunk.
Remove compress, decompress, unload, isLoaded, compressedSize methods.
Remove compressedTag, dataIsPacked, loadedChunkQueue/Limit, decompressedChunkQueue/Limit members.
Rename InfdevChunk to AnvilChunk. Keep in place the conversion to old-style chunks until all client code is updated.
Remove most checks for self.version and keep only the VERSION_ANVIL code in place
Rename Alpha tests to Anvil tests.
Change several tests to load the AnvilWorld test data.
Change ZipSchematic test to export an area from the center of the world instead of from hard-coded coordinates.
2012-10-27 15:04:28 -10:00
David Vierra
7696ff9dfa Split up tests into separate files
Because they're in a subfolder, we need to add pymclevel's folder to PYTHONPATH when running tests. See run_tests.sh
2012-10-08 18:39:11 -10:00