Skip to content

Commit 700e6fa

Browse files
Add a small test to assert the directory is indeed changing
1 parent 1d94b4c commit 700e6fa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
from diffgram import Project
3+
import random
4+
5+
project = Project()
6+
7+
name_list = [str(random.random()) for i in range(3)]
8+
last_id = None
9+
10+
for name in name_list:
11+
12+
project.directory.new(name)
13+
project.set_directory_by_name(name)
14+
id_set = project.session.headers.get('directory_id')
15+
print(id_set)
16+
assert last_id != id_set
17+
last_id = id_set

0 commit comments

Comments
 (0)