def test_glonass_parse_from_file(): def update(pos, info): pass gps = GPSService() gps.gpsposition.connect(update) wgs84CRS = QgsCoordinateReferenceSystem(4326) gps.crs = wgs84CRS with open(data("glonass_gps_log.nmea"), "r") as f: for line in f: line = line.strip("\n") gps.parse_data(line)