main.py 507B

123456789101112131415161718192021
  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. config_['_runtime'] = {}
  10. config_['_runtime']['map_dir_path'] = 'tests/fixtures/map_a/map_a.tmx'
  11. return config_
  12. @pytest.fixture
  13. def simulation(config) -> TileStrategySimulation:
  14. return TileStrategySimulation(config, 'tests/fixtures/map_a/map_a.tmx')