forked from OCA/maintainer-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mechanism to dynamically filter main branches
So we don't need to update with each Odoo release
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
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,11 @@ | ||
from tools.config import is_main_branch | ||
|
||
|
||
def test_is_main_branch(): | ||
assert is_main_branch("6.1") | ||
assert is_main_branch("8.0") | ||
assert is_main_branch("10.0") | ||
assert is_main_branch("16.0") | ||
assert is_main_branch("17.0") | ||
assert not is_main_branch("14.0-ocabot-thing") | ||
assert not is_main_branch("14.1") |
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