-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZergMacroTracker: Look for UpdateTargetAbilityEvent to track injects. #11
Conversation
This is very cool! Do tests pass? |
Fix MapInfo parsing for version 0x26
Hey @gravelweb , can you let me know if tests pass on this one? It looks simple enough a change but hard experience has taught me to mistrust appearances. |
…as well Fixes ggtrackerstack/ggtracker#49 once sc2reader changes are pushed as well.
Let's find out :) I added a unit tests. It's technically incorrect, because of some of the open issues, but this test can now be used for TDD of ggtracker/ggtrackerstack#50! |
Hey @dsjoerg. It looks like the test environment is not configured properly: cd /home/ubuntu/ggpyjobs && { echo 'import json;from django.conf import settings;print('\''OUT: '\'' + settings.TEST_RUNNER)' | python manage.py shell; } Traceback (most recent call last): File "manage.py", line 11, in import settings File "/home/ubuntu/ggpyjobs/settings.py", line 20, in with open(PROJECT_PATH + '/config/database.yml','r') as db_yaml: IOError: [Errno 2] No such file or directory: '/home/ubuntu/ggpyjobs/config/database.yml' ((and (cd "/home/ubuntu/ggpyjobs") (group (pipe (echo "'import json;from django.conf import settings;print('\\''OUT: '\\'' + settings.TEST_RUNNER)'") (python manage.py shell))))) returned exit code 1 |
I don't care about CI at this moment, but do the tests at least pass in your environment? |
Yes they do, except for one about uploading to aws and reading it back. I'm guessing I don't have my test buckets set up properly. The error is relating to a missing attribute on a map.. don't have PC to copy stack trace right now. |
====================================================================== ERROR: test_map_stuff (sc2parse.tests.SC2ReaderToEsdbTestCase) Parsing map info, storing in DB, retrieving from battle.net, storing in S3 ---------------------------------------------------------------------- Traceback (most recent call last): File "/vagrant/esdb/vendor/ggpyjobs/sc2parse/tests.py", line 132, in test_map_stuff self.assertEquals(matchDB.map.name, 'Molten Crater') AttributeError: 'NoneType' object has no attribute 'name' ---------------------------------------------------------------------- Ran 29 tests in 55.418s FAILED (errors=1) |
I should add that this test was failing before I included any of my changes (including sc2reader changes) |
Fixes ggtracker/ggtrackerstack#49 once ggtracker/sc2reader#14 changes are pushed as well.