mirror of
https://github.com/PokeAPI/pokeapi
synced 2025-02-16 20:48:25 +00:00
reformatted with black
This commit is contained in:
parent
1ae3964a5f
commit
f17a09b15f
1 changed files with 5 additions and 5 deletions
|
@ -11,7 +11,7 @@ API_V2 = "/api/v2"
|
||||||
|
|
||||||
|
|
||||||
class APIData:
|
class APIData:
|
||||||
""" Data Initializers"""
|
"""Data Initializers"""
|
||||||
|
|
||||||
# Gender Data
|
# Gender Data
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -4345,13 +4345,13 @@ class APITests(APIData, APITestCase):
|
||||||
# note that 'possible_values' is computed solely from gene_modulo
|
# note that 'possible_values' is computed solely from gene_modulo
|
||||||
# thus it is fine that our test characteristics are indexed 1-5
|
# thus it is fine that our test characteristics are indexed 1-5
|
||||||
result = self.client.get(
|
result = self.client.get(
|
||||||
"{}/characteristic/{}/".format(API_V2, characteristic.pk))
|
"{}/characteristic/{}/".format(API_V2, characteristic.pk)
|
||||||
for i in range(len(result.data['possible_values'])):
|
)
|
||||||
|
for i in range(len(result.data["possible_values"])):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
result.data['possible_values'][i], characteristic.gene_mod_5 + i * 5
|
result.data["possible_values"][i], characteristic.gene_mod_5 + i * 5
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Nature Tests
|
# Nature Tests
|
||||||
def test_nature_api(self):
|
def test_nature_api(self):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue