初始化 Python 项目,添加 Gitea Actions 工作流和基本测试
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import main
|
||||
|
||||
def test_main_prints_message(capsys):
|
||||
main.main()
|
||||
captured = capsys.readouterr()
|
||||
assert "Hello from python-action-test!" in captured.out
|
||||
Reference in New Issue
Block a user