File: conftest.py

package info (click to toggle)
python-libais 0.17%2Bgit.20190917.master.e464cf8-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,776 kB
  • sloc: cpp: 56,058; python: 11,974; makefile: 535; sh: 466
file content (24 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""pytest fixtures"""

import os

import pytest


@pytest.fixture(scope='function')
def typeexamples_nmea_path():
    return os.path.join('test', 'data', 'typeexamples.nmea')


@pytest.fixture(scope='function')
def bare_nmea():
    return """
$GPZDA,203003.00,12,07,2009,00,00,*47
!AIVDM,1,1,,B,23?up2001gGRju>Ap:;R2APP08:c,0*0E
!BSVDM,1,1,,A,15Mj23`PB`o=Of>KjvnJg8PT0L2R,0*7E
!SAVDM,1,1,,B,35Mj2p001qo@5tVKLBWmIDJT01:@,0*33
!AIVDM,1,1,,A,B5NWV1P0<vSE=I3QdK4bGwoUoP06,0*4F
!SAVDM,1,1,,A,403Owi1utn1W0qMtr2AKStg020S:,0*4B
!SAVDM,2,1,4,A,55Mub7P00001L@;SO7TI8DDltqB222222222220O0000067<0620@jhQDTVG,0*43
!SAVDM,2,2,4,A,30H88888880,2*49
""".strip()