question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove all usages of days_ago from test suite

See original GitHub issue

Body

days_ago is deprecated https://github.com/apache/airflow/pull/21653

We have several references to the function in test suite / example dags.

Task: there should be no imports of airflow.utils.dates import days_ago in the code. In most cases we can simple replace with datetime(2022, 1, 1)

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
eladkalcommented, Feb 20, 2022

@hubert-pietron sure, assigned to you.

0reactions
eladkalcommented, May 29, 2022

fixed in https://github.com/apache/airflow/pull/23237 and duplicated of https://github.com/apache/airflow/issues/23233 I don’t know why I opened two issues for this 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deleting a Test Suite : r/azuredevops - Reddit
Try to use Test Suites - Delete REST API to delete the test suites. DELETE https://dev.azure.com/{organization}/{project}/_apis/test/Plans/{ ...
Read more >
How can I clear the Jest cache? - Stack Overflow
As of Jest 22.0.0+, you can use the --clearCache option: Deletes the Jest cache directory and then exits without running tests. Will delete...
Read more >
Delete test artifacts in Azure Boards - Microsoft Learn
Deletion of test artifacts not only deletes the selected test artifact but also all its associated child items such as child test suites,...
Read more >
Delete files older than X days + - Unix & Linux Stack Exchange
Replace -delete with -depth -print to test this command before you run it ( -delete ... This will remove all files (type f)...
Read more >
Working Effectively with Data Factories Using FactoryBot
In fact, you should create them for each use case of the factory in order to be able to test all use cases...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found