Debian Codegraph @

tests/fake_module.py

raw symbols SCIP
1 from datetime import date, datetime
2 from time import time, localtime, gmtime, strftime, struct_time
3 from typing import Any
4
5
6 def fake_datetime_function() -> datetime:
7 return datetime.now()
8
9
10 def fake_date_function() -> date:
11 return date.today()
12
13
14 def fake_time_function() -> float:
15 return time()
16
17
18 def fake_localtime_function() -> struct_time:
19 return localtime()
20
21
22 def fake_gmtime_function() -> struct_time:
23 return gmtime()
24
25
26 def fake_strftime_function() -> str:
27 return strftime("%Y")
28
29
30 class EqualToAnything:
31 description = 'This is the equal_to_anything object'
32
33 def __eq__(self, other: Any) -> bool:
34 return True
35
36 def __neq__(self, other: Any) -> bool:
37 return False
38
39
40 equal_to_anything = EqualToAnything()