main.py 401B

1234567891011121314151617
  1. # coding: utf-8
  2. import pytest
  3. from synergine2.config import Config
  4. from opencombat.simulation.base import TileStrategySimulation
  5. @pytest.fixture()
  6. def config() -> Config:
  7. config_ = Config()
  8. config_.load_yaml('test_config.yaml')
  9. return config_
  10. @pytest.fixture
  11. def simulation(config) -> TileStrategySimulation:
  12. return TileStrategySimulation(config, 'tests/fixtures/map_a/map_a.tmx')