Commit Graph

6 Commits

Author SHA1 Message Date
洛水居室
f61f2951a5
Add player ID check to client fixtures
In various client fixtures, a player ID check has been added to ensure that the player ID parameter is not None before creating the client object. This check helps to handle scenarios where the player ID is not provided, preventing potential errors or undesired behavior.
2023-05-12 11:36:03 +08:00
洛水居室
834ce9b8ff
Add region-related code to unit tests 2023-05-12 11:01:53 +08:00
洛水居室
009f74839f
Add support for TEST_BUILD environment variable
In the `test_build` function, added support for the TEST_BUILD environment variable. Now, if the variable is set to True, the `test_build` function will run; otherwise, it will skip the test and output a related message. Additionally, introduced a new pytest fixture `if_test_build` to check if the test is enabled.
2023-05-09 16:20:56 +08:00
洛水居室
912a41fe45
Refactor auth client and add test 2023-05-09 16:06:32 +08:00
洛水居室
2a86d10640
Update test
- Test multiple clients
- Load testing configuration file using load_dotenv
- Add `requirements.dev.txt` file
2023-05-08 09:21:32 +08:00
洛水居室
cd97a751b9
Add Star Rail Client 2023-05-02 01:02:53 +08:00