forked from mdabrowski1990/uds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize system tests for CAN (mdabrowski1990#290)
- abstraction layer for system tests defined for easier reuse - system tests grouped in test classes - fixed issue with default value of N_Bs timeout always being used - added a method to CAN Addressing Information class get the other's end Addressing Information
- Loading branch information
1 parent
8a42282
commit f42d5a5
Showing
16 changed files
with
2,779 additions
and
1,978 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
from uds.utilities import TimeMillisecondsAlias | ||
|
||
|
||
class AbstractCanTests(ABC): | ||
"""Abstract class for system tests (with hardware) for Diagnostic over CAN (DoCAN).""" | ||
|
||
TASK_TIMING_TOLERANCE: TimeMillisecondsAlias = 30. # ms | ||
DELAY_AFTER_RECEIVING_FRAME: TimeMillisecondsAlias # ms | ||
DELAY_AFTER_RECEIVING_MESSAGE: TimeMillisecondsAlias # ms | ||
|
||
@abstractmethod | ||
def setup_class(self): | ||
"""Configure CAN bus connections.""" | ||
|
||
@abstractmethod | ||
def teardown_class(self): | ||
"""Safely close CAN bus connections.""" |
Empty file.
Oops, something went wrong.