-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand OBS web socket intergration, update dependencies
- Loading branch information
1 parent
7cbb23f
commit 9190fb1
Showing
6 changed files
with
37 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,4 +102,4 @@ def is_decided(self) -> bool: | |
|
||
|
||
class UIInfo(BaseModel): | ||
activeScreens: List[Screen] | ||
activeScreens: set[Screen] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from config import config | ||
from obs_tools.sc2client import SC2Client | ||
from obs_tools.types import GameInfo, Screen, UIInfo | ||
|
||
|
||
def test_uiinfo_equality_loading(): | ||
ui1 = UIInfo(activeScreens=[Screen.loading]) | ||
ui2 = UIInfo(activeScreens=[Screen.loading]) | ||
|
||
assert ui1 == ui2 | ||
|
||
|
||
def test_uiinfo_equality_menus(): | ||
ui1 = UIInfo(activeScreens=[Screen.background, Screen.foreground, Screen.navigation, Screen.home ]) | ||
ui2 = UIInfo(activeScreens=[Screen.home, Screen.background, Screen.foreground, Screen.navigation]) | ||
|
||
assert ui1 == ui2 |