FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sqlmodel/tests/test_default.py at main · codassassin/sqlmodel · GitHub
codassassin
sqlmodel
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sqlmodel
/
tests
/
test_default.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
44 lines (32 loc) · 842 Bytes
Breadcrumbs
sqlmodel
/
tests
/
test_default.py
Copy path
File metadata and controls
44 lines (32 loc) · 842 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from
sqlmodel
.
default
import
Default
def
test_default_bool
()
->
None
:
dt1
=
Default
(
True
)
dt2
=
Default
(
1
)
dt3
=
Default
(
"foo"
)
dt4
=
Default
([
"foo"
])
df1
=
Default
(
False
)
df2
=
Default
(
0
)
df3
=
Default
(
""
)
df4
:
list
=
Default
([])
df5
=
Default
(
None
)
assert
not
not
dt1
assert
not
not
dt2
assert
not
not
dt3
assert
not
not
dt4
assert
not
df1
assert
not
df2
assert
not
df3
assert
not
df4
assert
not
df5
def
test_equality
()
->
None
:
value1
=
Default
(
"foo"
)
value2
=
Default
(
"foo"
)
assert
value1
==
value2
def
test_not_equality
()
->
None
:
value1
=
Default
(
"foo"
)
value2
=
Default
(
"bar"
)
assert
not
(
value1
==
value2
)
def
test_not_equality_other
()
->
None
:
value1
=
Default
(
"foo"
)
value2
=
"foo"
assert
not
(
value1
==
value2
)
Back
|
FazBrowse Home
|
New Git URL