Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
knowledge_graph
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sun Long
knowledge_graph
Commits
d3f645bd
Commit
d3f645bd
authored
Apr 25, 2022
by
lyh3024
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'master'
fix See merge request lyh3024/knowledge_graph!7
parents
374fe7a3
3c371004
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
tests.py
domain/tests.py
+9
-5
No files found.
domain/tests.py
View file @
d3f645bd
...
...
@@ -11,6 +11,7 @@ def test(i):
t1
=
datetime
(
year
=
2022
,
month
=
1
,
day
=
i
)
l1
=
Label
(
label_name
=
"恶意域名"
+
str
(
i
))
l2
=
Label
(
label_name
=
"境外域名"
+
str
(
i
))
l1
.
save
()
l2
.
save
()
req1
=
RequestIp
(
request_ip
=
'127.0.0.1'
+
str
(
i
),
province
=
'四川'
,
isp
=
'电信'
)
...
...
@@ -31,7 +32,9 @@ def test(i):
r4
=
d2
.
parse_domain
.
connect
(
do2
,
{
"index"
:
"126"
,
"date"
:
t1
})
r5
=
do1
.
label
.
connect
(
l1
,
{
"index"
:
"127"
,
"date"
:
t1
})
r6
=
do2
.
label
.
connect
(
l2
,
{
"index"
:
"128"
,
"date"
:
t1
})
for
r
in
[
r1
,
r2
,
r3
,
r4
,
r5
,
r6
]:
r8
=
do1
.
label
.
connect
(
l2
,
{
"index"
:
"127"
,
"date"
:
t1
})
r7
=
req1
.
request_domain
.
connect
(
do2
,
{
"index"
:
"124"
,
"date"
:
t1
})
for
r
in
[
r1
,
r2
,
r3
,
r4
,
r5
,
r6
,
r7
,
r8
]:
r
.
save
()
...
...
@@ -99,8 +102,9 @@ def test4():
if
__name__
==
'__main__'
:
for
i
in
range
(
1
,
20
):
test
(
i
)
test2
(
i
)
test3
(
i
)
#
for i in range(1, 20):
#
test(i)
#
test2(i)
#
test3(i)
# test4()
test
(
22
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment