I'm working on https://exercism.org/tracks/python/exercises/ellens-alien-game using the in-browser editor. My code is:
'''
class Alien:
total_aliens_created = 0
def __init__(self, x_coordinate, y_coordinate):
Alien.total_aliens_created += 1
self.health = 3
self.x_coordinate = x_coordinate
self.y_coordinate = y_coordinate
def new_aliens_collection(self, *args):
pass
'''
But when I hit test I get this error:
'''
We received the following error when we ran your code:
ImportError while importing test module '.mnt.exercism-iteration.classes_test.py'.
Hint: make sure your test modules.packages have valid Python names.
Traceback:
.usr.local.lib.python3.11.importlib.init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
.mnt.exercism-iteration.classes_test.py:16: in <module>
raise ImportError("\n\nMISSING FUNCTION --> We tried to import the "
E ImportError:
E
E MISSING FUNCTION --> We tried to import the new_aliens_collection() function from your classes.py file, but could not find it. Did you misname or forget to create it?
'''
I've tried replicating locally in vs code with Python 3, but it doesn't give me any errors - I can import alien from classes and run some obvious instance tests.
When I run "exercism test" locally I get the same error.
Is this just me?