Skip to content
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

Merged
merged 2 commits into from
Jun 13, 2016
Merged

ZergMacroTracker: Look for UpdateTargetAbilityEvent to track injects. #11

merged 2 commits into from
Jun 13, 2016

Conversation

gravelweb
Copy link
Contributor

@gravelweb gravelweb commented Jun 9, 2016

Fixes ggtracker/ggtrackerstack#49 once ggtracker/sc2reader#14 changes are pushed as well.

@dsjoerg
Copy link
Owner

dsjoerg commented Jun 9, 2016

This is very cool!

Do tests pass?
Can you add a new test that breaks without this change?

nickelsen pushed a commit to nickelsen/ggpyjobs that referenced this pull request Jun 10, 2016
Fix MapInfo parsing for version 0x26
@dsjoerg
Copy link
Owner

dsjoerg commented Jun 11, 2016

Hey @gravelweb , can you let me know if tests pass on this one?
And ideally add a new test that breaks without this change?

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.
@gravelweb
Copy link
Contributor Author

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!

@gravelweb
Copy link
Contributor Author

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

@dsjoerg
Copy link
Owner

dsjoerg commented Jun 12, 2016

I don't care about CI at this moment, but do the tests at least pass in your environment?

@gravelweb
Copy link
Contributor Author

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.

@gravelweb
Copy link
Contributor Author

======================================================================
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)

@gravelweb
Copy link
Contributor Author

I should add that this test was failing before I included any of my changes (including sc2reader changes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants