turbaszek commented on a change in pull request #8849:
URL: https://github.com/apache/airflow/pull/8849#discussion_r453811292
##########
File path: tests/providers/google/cloud/transfers/test_local_to_gcs.py
##########
@@ -42,15 +43,28 @@ def setUp(self):
'start_date': datetime.datetime(2017, 1, 1)
}
self.dag = DAG('test_dag_id', default_args=args)
+ self.testfile1 = '/tmp/fake1.csv'
+ with open(self.testfile1, 'wb') as f:
+ f.write(b"x" * 393216)
+ self.testfile2 = '/tmp/fake2.csv'
+ with open(self.testfile2, 'wb') as f:
+ f.write(b"x" * 393216)
+ self.testfiles = [self.testfile1, self.testfile2]
+
+ def tearDown(self):
+ os.remove(self.testfile1)
+ os.remove(self.testfile2)
Review comment:
Probably using a pytest fixture with yield would be clear but let move on
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]