mirror of
https://github.com/meshtastic/python.git
synced 2025-12-31 11:57:57 -05:00
16 lines
330 B
Python
16 lines
330 B
Python
"""Common pytest code (place for fixtures)."""
|
|
|
|
import argparse
|
|
|
|
import pytest
|
|
|
|
from meshtastic.__main__ import Globals
|
|
|
|
@pytest.fixture
|
|
def reset_globals():
|
|
"""Fixture to reset globals."""
|
|
parser = None
|
|
parser = argparse.ArgumentParser()
|
|
Globals.getInstance().reset()
|
|
Globals.getInstance().set_parser(parser)
|