Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

test_detect_breaking_change.py 512 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  1. import os
  2. import unittest
  3. from .breaking_changes_detection import analyze_breaking_changes
  4. class BreakingChangeTest(unittest.TestCase):
  5. def test_detect_breaking_change(self):
  6. source_branch = os.getenv("BRANCH_MERGED_INTO", "master")
  7. breaking_changes_list = analyze_breaking_changes(verbose=True, source_branch=source_branch)
  8. self.assertEqual(len(breaking_changes_list), 0, f"{len(breaking_changes_list)} breaking changes detected")
  9. if __name__ == "__main__":
  10. unittest.main()
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...