File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
tests/time_tracker_api/time_entries
time_tracker_api/time_entries Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 13
13
14
14
SUCCESS_MSG = "Commit succeed!. Semantic commit message is correct."
15
15
16
- COMMIT_MSG_REGEX = r'(TT-)[0-9].*( build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert)(\([\w\-]+\))?:\s.*'
16
+ COMMIT_MSG_REGEX = r'(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert)(\([\w\-]+\))?:\s.*'
17
17
18
18
# Get the commit message file
19
19
commit_msg_file = open (sys .argv [1 ]) # The first argument is the file
Original file line number Diff line number Diff line change @@ -61,12 +61,6 @@ def create_time_entry(
61
61
"2020-10-01T02:00:00.000Z" ,
62
62
"2020-10-01T12:00:00.000Z" ,
63
63
),
64
- (
65
- "2020-10-01T05:00:00.000Z" ,
66
- "2020-10-01T10:00:00.000Z" ,
67
- "2020-10-01T06:00:00.000Z" ,
68
- "2020-10-01T07:00:00.000Z" ,
69
- ),
70
64
],
71
65
)
72
66
def test_find_interception_with_date_range_should_find (
Original file line number Diff line number Diff line change @@ -207,10 +207,8 @@ def find_interception_with_date_range(
207
207
result = self .container .query_items (
208
208
query = """
209
209
SELECT * FROM c
210
- WHERE ((( c.start_date BETWEEN @start_date AND @end_date)
210
+ WHERE ((c.start_date BETWEEN @start_date AND @end_date)
211
211
OR (c.end_date BETWEEN @start_date AND @end_date))
212
- OR ((@start_date BETWEEN c.start_date AND c.end_date)
213
- OR (@end_date BETWEEN c.start_date AND c.end_date)))
214
212
AND c.start_date!= @end_date
215
213
AND c.end_date!= @start_date
216
214
{conditions_clause}
You can’t perform that action at this time.
0 commit comments