Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

eshiled-new / my_flask_web

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • my_flask_web
  • test.py
  • 杨林龙's avatar
    优化测试用例 · 7031d4d1
    杨林龙 committed Dec 08, 2023
    7031d4d1
test.py 361 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import unittest


class MyTest(unittest.TestCase):
    def test_addition(self):
        result = 2 + 2
        self.assertEqual(result, 4)

    def test_subtraction(self):
        result = 5 - 3
        self.assertEqual(result, 2)

    def fname(self):
        result = 5 - 3
        self.assertEqual(result, 2)


if __name__ == "__main__":
    unittest.main()