forked from eee555/saolei_website
-
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.
Merge pull request eee555#19 from putianyi889/patch-19
初步简化`video_query`
- Loading branch information
Showing
7 changed files
with
71 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Back-end Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Adjust the branch name as needed | ||
pull_request: | ||
|
||
jobs: | ||
check_flag: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' # Choose the Python version you want to use | ||
|
||
- name: Run Test | ||
run: python -m unittest back_end/saolei/tests.py -v |
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,3 @@ | ||
EMAIL_SKIP = True # 是否跳过邮箱验证。用于调试 | ||
BAIDU_VERIFY_SKIP = False # 是否跳过审查步骤。用于调试 | ||
DESIGNATOR_SKIP = False # 是否跳过标识检查。用于调试 |
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,21 @@ | ||
import unittest | ||
|
||
import sys | ||
import os | ||
|
||
# Get the parent directory of the current directory (my_script) | ||
parent_dir = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
# Add the parent directory to the Python path | ||
sys.path.append(parent_dir) | ||
|
||
from config.flags import * | ||
|
||
class TestFlags(unittest.TestCase): | ||
def test_skip(self): | ||
self.assertFalse(EMAIL_SKIP) | ||
self.assertFalse(BAIDU_VERIFY_SKIP) | ||
self.assertFalse(DESIGNATOR_SKIP) | ||
|
||
if __name__ == "__main__": | ||
unittest.main() |
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