-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, as stated in line 86 & line 102, would you like to maybe add them to a log file or execute a specific task? I've included a parameter as well in case you'd explicitly like to invoke the function. I could make the explicit tests for you, but I thought you'd appreciate a dynamic function. I'm pretty new here so please bear with me. |
@ejdaduya The submitted code is good but we have to make some changes, remove this In the dynamic function I thought to do something like this: def weapon_call(weapon):
bf = Battlefield('girbons', API_KEY, 'Pc')
response = bf.progression_service.get_weapon(weapon=resolve_weapon(weapon))
return response Now you can use the dynamic function def test_selbstlader_optical():
response = weapon_call('selbstlader m1916 optical')
assert response.status_code == 200 We can isolate tests for vehicles and weapons in 2 files If you have another idea i'm glad to discuss it :) |
Should we discard the |
@ejdaduya yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ejdaduya nice work, change the last thing and add your name to the contributors file and i will be happy to merge your pull request
tests/test_weapon_resolver.py
Outdated
assert response.status_code == 200 | ||
|
||
|
||
def test_lawrence_of_arabia's_SMLE(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change it in lower case test_lawrence_of_arabias_smle
Hi @Girbons, I've dropped some of the special characters for the function names. Kindly confirm if these meets your expectation. |
Hi @Girbons, that's probably all from me for today. |
@ejdaduya I will take a look in this afternoon it seems good, |
Sure thing. I'll give you a feedback once I have some free time tonight. |
Hi @Girbons, I've tried running the tests and the Here are my current issues:
I've tested this by running |
@ejdaduya I missed a step, my bad |
Thank you very much @ejdaduya :) |
Cheers! |
No description provided.