Skip to content

Commit

Permalink
Add invalid plate test async
Browse files Browse the repository at this point in the history
  • Loading branch information
j4asper committed Sep 25, 2023
1 parent 700859e commit 6eeab41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_dmr_methods.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from dmr import DMR
import asyncio


def test_validate_license_plate():
Expand All @@ -13,3 +14,8 @@ def test_validate_license_plate():
def test_invalid_license_plate():
dmr_obj = DMR.get_by_plate(license_plate="GGGGGGG")
assert dmr_obj is None

def test_invalid_license_plate_async():
loop = asyncio.new_event_loop()
dmr_obj = loop.run_until_complete(DMR.get_by_plate_async("GGGGGGG"))
assert dmr_obj is None

0 comments on commit 6eeab41

Please sign in to comment.