michael-s-molina commented on code in PR #33626:
URL: https://github.com/apache/superset/pull/33626#discussion_r2123867098


##########
tests/integration_tests/datasets/api_tests.py:
##########
@@ -1188,6 +1190,10 @@ def test_update_dataset_create_column_and_metric(self):
             metric.pop("type_generic", None)
 
         data["result"]["metrics"].append(new_metric_data)
+
+        # Sleep to ensure that the changed_on is updated

Review Comment:
   You can do something like:
   
   ```
   @freeze_time("2023-10-01")
   def test_advance_time():
       # Check the initial frozen time
       assert datetime.now() == datetime(2023, 10, 1)
       
       # Advance time by one day
       freeze_time().tick()
       
       # Now it should reflect the new time
       assert datetime.now() == datetime(2023, 10, 2)
   ```
   
   This will make your test run instantly instead of taking 3 seconds to 
execute.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to