"""Test the Komatsu HM400 dump truck model"""
import pytest
from agxPythonModules.openplx.control import PyControlInterface
from agxOpenPLX import load_from_file, OptParams

class TestBeachBuggy: # pylint: disable=too-few-public-methods
    def test_beach_buggy_full_drivetrain(self, sim, models):
        opt_params = OptParams()
        result = load_from_file(sim, str(models / "BeachBuggy" / "Variants" / "Drivetrain.openplx"), opt_params)
        assert len(result.errors()) == 0

    def test_beach_buggy_individual_wheel_motors(self, sim, models):
        opt_params = OptParams()
        result = load_from_file(sim, str(models / "BeachBuggy" / "Variants" / "IndividualWheelMotors.openplx"), opt_params)
        assert len(result.errors()) == 0
