Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tosca2doc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CTI Tools
tosca2doc
Commits
986b91f1
Commit
986b91f1
authored
6 years ago
by
carignani
Browse files
Options
Downloads
Patches
Plain Diff
added tests for doc2tosca
parent
ead8736a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test_doc2tosca.py
+13
-0
13 additions, 0 deletions
src/test_doc2tosca.py
with
13 additions
and
0 deletions
src/test_doc2tosca.py
0 → 100644
+
13
−
0
View file @
986b91f1
#!/bin/bash
import
doc2tosca
as
d2t
def
test_match_definition_incipit
():
assert
d2t
.
match_definition_incipit
(
"
tosca.
"
)
==
True
assert
d2t
.
match_definition_incipit
(
"
tosca.definitions
"
)
==
True
assert
d2t
.
match_definition_incipit
(
"
<node_template>
"
)
==
False
def
test_is_tosca_def
():
assert
False
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment