@@ -60,8 +60,8 @@ async def test_logs_command_display_log_file_of_latest_run(self, tmp_path):
6060 "%Y-%m-%d_%H:%M:%S"
6161 )
6262
63- self .create_logfile (data_dir , timestamp = now , content = content )
64- self .create_logfile (data_dir , timestamp = forty_days_ago )
63+ self .create_log_file (data_dir , timestamp = now , content = content )
64+ self .create_log_file (data_dir , timestamp = forty_days_ago )
6565
6666 with contextlib .redirect_stdout (f ):
6767 devstack = CephDevStack ()
@@ -77,7 +77,7 @@ async def test_logs_display_roughly_contents_of_log_file(self, tmp_path):
7777 for _ in range (6 * 8 * 1024 )
7878 )
7979 now = datetime .now ().strftime ("%Y-%m-%d_%H:%M:%S" )
80- self .create_logfile (data_dir , timestamp = now , content = content )
80+ self .create_log_file (data_dir , timestamp = now , content = content )
8181
8282 with contextlib .redirect_stdout (f ):
8383 devstack = CephDevStack ()
@@ -91,14 +91,14 @@ async def test_logs_command_display_log_file_of_given_job_id(self, tmp_path):
9191 content = "custom log message"
9292 now = datetime .now ().strftime ("%Y-%m-%d_%H:%M:%S" )
9393
94- self .create_logfile (
94+ self .create_log_file (
9595 data_dir ,
9696 timestamp = now ,
9797 test_type = "ceph" ,
9898 job_id = "1" ,
9999 content = "another log" ,
100100 )
101- self .create_logfile (
101+ self .create_log_file (
102102 data_dir , timestamp = now , test_type = "ceph" , job_id = "2" , content = content
103103 )
104104
@@ -117,11 +117,11 @@ async def test_logs_display_content_of_provided_run_name(self, tmp_path):
117117 "%Y-%m-%d_%H:%M:%S"
118118 )
119119
120- self .create_logfile (
120+ self .create_log_file (
121121 data_dir ,
122122 timestamp = now ,
123123 )
124- run_name = self .create_logfile (
124+ run_name = self .create_log_file (
125125 data_dir ,
126126 timestamp = three_days_ago ,
127127 content = content ,
@@ -137,13 +137,13 @@ async def test_logs_locate_display_file_path_instead_of_config(self, tmp_path):
137137
138138 config ["data_dir" ] = data_dir
139139 f = io .StringIO ()
140- logfile = self .create_logfile (data_dir )
140+ log_file = self .create_log_file (data_dir )
141141 with contextlib .redirect_stdout (f ):
142142 devstack = CephDevStack ()
143143 await devstack .logs (locate = True )
144- assert logfile in f .getvalue ()
144+ assert log_file in f .getvalue ()
145145
146- def create_logfile (self , data_dir : str , ** kwargs ):
146+ def create_log_file (self , data_dir : str , ** kwargs ):
147147 parts = {
148148 "timestamp" : (datetime .now () - timedelta (days = rd .randint (1 , 100 ))).strftime (
149149 "%Y-%m-%d_%H:%M:%S"
0 commit comments