johncmerfeld commented on PR #43978:
URL: https://github.com/apache/airflow/pull/43978#issuecomment-2484340542
> Maybe add one then - following the same structure in `tests` as you have
for the source
Sure. Since it's an abstract class, I'm thinking I'll have to create a mock
implementation for the test. I'll also need to mock `check_query_exists` so
that it returns `None` .Something like:
```python
class LazySelectSequenceInstance(LazySelectSequence[Any]):
... # implement required methods
@mock.patch("check_query_exists", lambda x, y: None):
def test_lazy_select_sequence():
lss = LazySelectSequenceInstance(...)
assert bool(lss) == False
```
Does this make sense?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]