diff --git a/.aider.tags.cache.v4/cache.db b/.aider.tags.cache.v4/cache.db index d932421b27ca77a338725884bde28bad6e90f4df..f435ca1ce2f37b0bfcb2e4bfb90cfe689ecc5d80 100644 Binary files a/.aider.tags.cache.v4/cache.db and b/.aider.tags.cache.v4/cache.db differ diff --git a/.aider.tags.cache.v4/cache.db-shm b/.aider.tags.cache.v4/cache.db-shm index 08be80930e06fc3c955b9f7399f7883d18d43abc..1dfa4a890072fe8b7ac550e9d8d017fdbbbfb0bf 100644 Binary files a/.aider.tags.cache.v4/cache.db-shm and b/.aider.tags.cache.v4/cache.db-shm differ diff --git a/.aider.tags.cache.v4/cache.db-wal b/.aider.tags.cache.v4/cache.db-wal index 8572acc3dad775eded5d91011ef55eae4bb455b0..03a0cfda4781567ca6b1290dbeae098d9104d074 100644 Binary files a/.aider.tags.cache.v4/cache.db-wal and b/.aider.tags.cache.v4/cache.db-wal differ diff --git a/Unittest.py b/Unittest.py index bb4fd6d674d4b6df7d348bccb8a2474d6c45b9c6..d06a3f0a7a7951f31b81546cdc26d88ba81be6c5 100644 --- a/Unittest.py +++ b/Unittest.py @@ -1,15 +1,14 @@ import sys import os #from Pyscript import MissionControl, Plateau, Rover, Mars -from Aider_implementation.plateau import Plateau -from Aider_implementation.mars import Mars -from Aider_implementation.rover import Rover -from Aider_implementation.mission_control import MissionControl -from Aider_implementation.telescope import Telescope -from Aider_implementation.map import Map +from plateau import Plateau +from mars import Mars +from rover import Rover +from mission_control import MissionControl +from telescope import Telescope +from map import Map import unittest -import Aider_implementation.telescope # ---US01: Als Mars Mission Control möchte ich den Mars Rover steuern, um die grundlegende Interaktion und Kontrolle über den Rover zu ermöglichen. # TC01.01: Gültiger Vorwärtsbefehl: Überprüft, ob der Rover sich korrekt um ein Feld vorwärts bewegt, wenn der Befehl "F" empfangen wird. diff --git a/__pycache__/map.cpython-311.pyc b/__pycache__/map.cpython-311.pyc index 9bfff72eeed3186eca6003bf01e0a7649e7d1364..58c9d8dc2ad845119be3a9e6b0204e9638cf292b 100644 Binary files a/__pycache__/map.cpython-311.pyc and b/__pycache__/map.cpython-311.pyc differ diff --git a/__pycache__/mars.cpython-311.pyc b/__pycache__/mars.cpython-311.pyc index 4fae670c7ddab4439cfca045a654bd477baf5976..8596cd9ab38ba82b131cbf923b62817dc554cafc 100644 Binary files a/__pycache__/mars.cpython-311.pyc and b/__pycache__/mars.cpython-311.pyc differ diff --git a/__pycache__/mission_control.cpython-311.pyc b/__pycache__/mission_control.cpython-311.pyc index be4951f11bbce503cec98a2c8fff6521eef0c478..5000dd9447e0432d84bd93e7d8016cb2767c0c03 100644 Binary files a/__pycache__/mission_control.cpython-311.pyc and b/__pycache__/mission_control.cpython-311.pyc differ diff --git a/__pycache__/plateau.cpython-311.pyc b/__pycache__/plateau.cpython-311.pyc index a215f616b524bb2427167f23134530e9667bd18b..781c2d046a197b2ee5b9d84163be488784903051 100644 Binary files a/__pycache__/plateau.cpython-311.pyc and b/__pycache__/plateau.cpython-311.pyc differ diff --git a/__pycache__/rover.cpython-311.pyc b/__pycache__/rover.cpython-311.pyc index 1b3b454e3a89c0719b1fe2e76f924f1cade0de6f..ed129bd095a7c00496cf631a038b96f4ddfaa73c 100644 Binary files a/__pycache__/rover.cpython-311.pyc and b/__pycache__/rover.cpython-311.pyc differ diff --git a/__pycache__/telescope.cpython-311.pyc b/__pycache__/telescope.cpython-311.pyc index f59be9dd2aa4059087c2f9dee15eef61ad6d502e..4fd655b9a6378eeb12d9e3b754d69226c35e449f 100644 Binary files a/__pycache__/telescope.cpython-311.pyc and b/__pycache__/telescope.cpython-311.pyc differ diff --git a/api.py b/api.py index 237f9f8e47193cac3918a76749c87ba3edcb356e..11cd1a7fa73e0b89c9e3e5c1699484b4ac90dbab 100644 --- a/api.py +++ b/api.py @@ -19,12 +19,12 @@ def drive_rover(): data = request.get_json() if not data or 'Input' not in data: - return jsonify({'error': 'Ungültige Anfrage. "Input" fehlt.'}), 400 + return jsonify({'error':'Ungültige Anfrage. "Input" fehlt.'}), 400 commands = data['Input'] result = rover.drive(commands) - return jsonify({'executed_commands': result}) + return jsonify({'executed_commands':result}) if __name__ == '__main__': app.run(debug=True)