(pokemon_id)
| 319 | |
| 320 | |
| 321 | def get_pokemon_data(pokemon_id): |
| 322 | if not hasattr(get_pokemon_data, 'pokemon'): |
| 323 | file_path = os.path.join( |
| 324 | config['ROOT_PATH'], |
| 325 | config['DATA_DIR'], |
| 326 | 'pokemon.min.json') |
| 327 | |
| 328 | with open(file_path, 'r') as f: |
| 329 | get_pokemon_data.pokemon = json.loads(f.read()) |
| 330 | return get_pokemon_data.pokemon[str(pokemon_id)] |
| 331 | |
| 332 | |
| 333 | def get_pokemon_name(pokemon_id): |
no outgoing calls
no test coverage detected