Skip to content

Commit 81ae85b

Browse files
committed
Add property based testing
1 parent 6233049 commit 81ae85b

File tree

2 files changed

+81
-1
lines changed

2 files changed

+81
-1
lines changed

Docker.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@
494494
],
495495
"metadata": {
496496
"kernelspec": {
497-
"display_name": "Python 3",
497+
"display_name": "Python [default]",
498498
"language": "python",
499499
"name": "python3"
500500
},

Untitled.ipynb

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Property based testing and data integrity testing\n",
8+
"\n",
9+
"## Property based testing with Hypothesis\n",
10+
"\n",
11+
"So far all the tests we have written/write are done at a basic level in which you take 1 test and write test cases for which ti should pass or fail. But what about edge cases? How do you know when you have actually found a bug and not an edge case for your model/algorithm or else?\n",
12+
"\n"
13+
]
14+
},
15+
{
16+
"cell_type": "code",
17+
"execution_count": null,
18+
"metadata": {},
19+
"outputs": [],
20+
"source": []
21+
},
22+
{
23+
"cell_type": "code",
24+
"execution_count": null,
25+
"metadata": {},
26+
"outputs": [],
27+
"source": []
28+
},
29+
{
30+
"cell_type": "code",
31+
"execution_count": null,
32+
"metadata": {},
33+
"outputs": [],
34+
"source": []
35+
},
36+
{
37+
"cell_type": "code",
38+
"execution_count": null,
39+
"metadata": {},
40+
"outputs": [],
41+
"source": []
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": null,
46+
"metadata": {},
47+
"outputs": [],
48+
"source": [
49+
"from IPython.core.display import HTML\n",
50+
"\n",
51+
"\n",
52+
"def css_styling():\n",
53+
" styles = open(\"styles/custom.css\", \"r\").read()\n",
54+
" return HTML(styles)\n",
55+
"css_styling()"
56+
]
57+
}
58+
],
59+
"metadata": {
60+
"kernelspec": {
61+
"display_name": "Python [default]",
62+
"language": "python",
63+
"name": "python3"
64+
},
65+
"language_info": {
66+
"codemirror_mode": {
67+
"name": "ipython",
68+
"version": 3
69+
},
70+
"file_extension": ".py",
71+
"mimetype": "text/x-python",
72+
"name": "python",
73+
"nbconvert_exporter": "python",
74+
"pygments_lexer": "ipython3",
75+
"version": "3.6.5"
76+
}
77+
},
78+
"nbformat": 4,
79+
"nbformat_minor": 2
80+
}

0 commit comments

Comments
 (0)