Skip to content

Commit

Permalink
skip fallback branches in coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jerch committed Apr 29, 2022
1 parent 89129c8 commit f5f2ef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fast_update/fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_impl(conn: BaseDatabaseWrapper) -> str:
if impl is not None:
return impl
check = CHECKER.get(conn.vendor)
if not check:
if not check: # pragma: no cover
SEEN_CONNECTIONS[conn] = tuple()
return tuple()
impl = check(conn)
Expand Down Expand Up @@ -316,7 +316,7 @@ def fast_update(
model = qs.model

## fall back to bulk_update if we dont have a working fast_update impl
if not get_impl(conn):
if not get_impl(conn): # pragma: no cover
return qs.bulk_update(objs, fieldnames, batch_size)

# filter all non model local fields --> still handled by bulk_update
Expand Down

0 comments on commit f5f2ef8

Please sign in to comment.