-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Force Switch Battle Property Tracking Bugfix #478
Force Switch Battle Property Tracking Bugfix #478
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #478 +/- ##
==========================================
+ Coverage 83.38% 84.20% +0.82%
==========================================
Files 39 42 +3
Lines 3918 4116 +198
==========================================
+ Hits 3267 3466 +199
+ Misses 651 650 -1 |
Good catch - thanks for the fix. Can you add a unit test checking that the message is parsed properly? |
@cameronangliss let me know if you need a hand with this :) |
Hi @hsahovic, sorry, I saw what you wrote but I've just not gotten around to adding the unit tests yet. If you feel like you have the time and want to get this through quickly I'd have no issue with you taking it from here :) If not though, I can't say for sure when I'll be able to look into that myself, as I'm getting rather busy as of late. |
No problem - i'll take a look whenever I have some time for |
I'm closing this for now - let me know if you want to reopen it! |
…switch-battle-property-tracking-bugfix
Hi @hsahovic! I'm done with my semester now so I have time to finish this PR. Open it back up and I'll get this done. |
Update: I've got this branch working with updated unit tests up, so it should be good as soon as you reopen it. |
Thanks @cameronangliss ! |
I found that force_switch is not being tracked correctly, as it should always be of type
bool
, but I have found that sometimes it returns[True]
. Here is an example request message that shows why the error is happening:Notice that we have
"forceSwitch":[true]
. I fix this bug by indexing into the first element of the request JSON'sforceSwitch
attribute.