starting ResolutionProviderTest

This commit is contained in:
frankknoll
2023-10-03 19:22:07 +02:00
parent 22ee70d111
commit ac6435de7d
6 changed files with 1505 additions and 22 deletions

View File

@@ -0,0 +1,15 @@
from enum import Enum
import linecache
class Resolution(Enum):
CITY = 1
COUNTRY = 2
class ResolutionProvider:
@staticmethod
def getResolution(file):
columns = linecache.getline(file, 7)
return Resolution.CITY if 'City' in columns else Resolution.COUNTRY