Commit 74ceae9
committed
cmd/git(fix[GitTag]): make doctests self-contained
why: Doctests failed in full test suite due to state pollution - tags
created in earlier doctests don't persist across different test contexts
what:
- GitTagCmd.run: use 'in' check instead of exact match
- GitTagManager.__init__: create own tag before verifying
- GitTagManager.run: create own tag before verifying1 parent 6c3d65a commit 74ceae9
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5885 | 5885 | | |
5886 | 5886 | | |
5887 | 5887 | | |
5888 | | - | |
| 5888 | + | |
5889 | 5889 | | |
5890 | 5890 | | |
5891 | 5891 | | |
5892 | | - | |
| 5892 | + | |
| 5893 | + | |
5893 | 5894 | | |
5894 | 5895 | | |
5895 | 5896 | | |
| |||
6030 | 6031 | | |
6031 | 6032 | | |
6032 | 6033 | | |
6033 | | - | |
6034 | | - | |
6035 | | - | |
| 6034 | + | |
| 6035 | + | |
6036 | 6036 | | |
| 6037 | + | |
| 6038 | + | |
6037 | 6039 | | |
6038 | 6040 | | |
6039 | 6041 | | |
| |||
6064 | 6066 | | |
6065 | 6067 | | |
6066 | 6068 | | |
6067 | | - | |
| 6069 | + | |
| 6070 | + | |
6068 | 6071 | | |
| 6072 | + | |
| 6073 | + | |
6069 | 6074 | | |
6070 | 6075 | | |
6071 | 6076 | | |
| |||
0 commit comments