| 1 | """pytest fixtures""" |
| 2 | |
| 3 | import os |
| 4 | |
| 5 | import pytest |
| 6 | |
| 7 | |
| 8 | @pytest.fixture(scope='function') |
| 9 | def typeexamples_nmea_path(): |
| 10 | return os.path.join('test', 'data', 'typeexamples.nmea') |
| 11 | |
| 12 | |
| 13 | @pytest.fixture(scope='function') |
| 14 | def bare_nmea(): |
| 15 | return """ |
| 16 | $GPZDA,203003.00,12,07,2009,00,00,*47 |
| 17 | !AIVDM,1,1,,B,23?up2001gGRju>Ap:;R2APP08:c,0*0E |
| 18 | !BSVDM,1,1,,A,15Mj23`PB`o=Of>KjvnJg8PT0L2R,0*7E |
| 19 | !SAVDM,1,1,,B,35Mj2p001qo@5tVKLBWmIDJT01:@,0*33 |
| 20 | !AIVDM,1,1,,A,B5NWV1P0<vSE=I3QdK4bGwoUoP06,0*4F |
| 21 | !SAVDM,1,1,,A,403Owi1utn1W0qMtr2AKStg020S:,0*4B |
| 22 | !SAVDM,2,1,4,A,55Mub7P00001L@;SO7TI8DDltqB222222222220O0000067<0620@jhQDTVG,0*43 |
| 23 | !SAVDM,2,2,4,A,30H88888880,2*49 |
| 24 | """.strip() |