Revision: 5a542b08c689
Branch: default
Author: Janne Piironen <janne.piiro...@gmail.com>
Date: Mon Jun 16 12:11:19 2014 UTC
Log: DateTime: modified test to avoid flicker
http://code.google.com/p/robotframework/source/detail?r=5a542b08c689
Modified:
/atest/testdata/standard_libraries/datetime/get_current_date.txt
=======================================
--- /atest/testdata/standard_libraries/datetime/get_current_date.txt Thu
Jun 5 11:14:14 2014 UTC
+++ /atest/testdata/standard_libraries/datetime/get_current_date.txt Mon
Jun 16 12:11:19 2014 UTC
@@ -37,5 +37,7 @@
Should Be True 1000000000 < ${date} < 2000000000
Result format datetime
- ${date} = Get Current Date result_format=datetime
- Should Be Equal ${date.replace(microsecond=0)}
${datetime.now().replace(microsecond=0)}
+ ${before} = Evaluate datetime.datetime.now().isoformat() datetime
+ ${dt} = Get Current Date result_format=datetime
+ ${after} = Evaluate datetime.datetime.now().isoformat() datetime
+ Should Be True "${before}" < "${dt.isoformat()}" < "${after}"
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.