Coverage for tests/historicalletters/test_model.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-15 13:13 +0200

1import math 

2from unittest.mock import Mock, patch 

3from collections import Counter 

4import pandas as pd 

5import geopandas as gpd 

6from shapely import Point, LineString, contains 

7from pathlib import Path 

8import pytest 

9 

10 

11from scicom.historicalletters.model import ( 

12 HistoricalLetters, 

13 prune, 

14) 

15 

16 

17##### 

18# Test model setup 

19##### 

20 

21def test_model_initialization(): 

22 """Model initialization puts agents on sheduler.""" 

23 # initialize model for 30 agents with defaults 

24 model = HistoricalLetters(30) 

25 # 30 agents should be on the scheduler 

26 assert len(model.schedule.agents) == 30