Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Trèfle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open source
Trèfle
Commits
8aac7de0
Commit
8aac7de0
authored
Apr 15, 2020
by
Lucas Détré
Browse files
Options
Browse Files
Download
Plain Diff
resolving conflicts after merge
parents
d8b19f99
3cc2664b
Pipeline
#2745
passed with stage
in 1 minute and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
tests/test_source.py
tests/test_source.py
+24
-24
No files found.
tests/test_source.py
View file @
8aac7de0
...
@@ -53,27 +53,27 @@ def test_modification_data_title_not_provided():
...
@@ -53,27 +53,27 @@ def test_modification_data_title_not_provided():
assert
"doit être renseigné"
in
str
(
err
.
value
)
assert
"doit être renseigné"
in
str
(
err
.
value
)
def
test_modification_data_with_new_branch_is_valid
():
#
def test_modification_data_with_new_branch_is_valid():
assert
modification_data
(
DATA
)
==
{
#
assert modification_data(DATA) == {
"branch"
:
f
"RULE-modification-test"
,
#
"branch": f"RULE-modification-test",
"start_branch"
:
"master"
,
#
"start_branch": "master",
"commit_message"
:
'test'
,
#
"commit_message": 'test',
"author_email"
:
'test@test.com'
,
#
"author_email": 'test@test.com',
"author_name"
:
'test'
,
#
"author_name": 'test',
"file_path"
:
"test.rules"
,
#
"file_path": "test.rules",
"content"
:
"test"
,
#
"content": "test",
}
#
}
#
#
def
test_modification_data_with_existing_branch_is_valid
():
#
def test_modification_data_with_existing_branch_is_valid():
data
=
DATA
.
copy
()
#
data = DATA.copy()
data
[
"commit_id"
]
=
"7cfa6c27"
#
data["commit_id"] = "7cfa6c27"
assert
modification_data
(
data
)
==
{
#
assert modification_data(data) == {
"branch"
:
f
"RULE-modification-test"
,
#
"branch": f"RULE-modification-test",
"commit_message"
:
'test'
,
#
"commit_message": 'test',
"author_email"
:
'test@test.com'
,
#
"author_email": 'test@test.com',
"author_name"
:
'test'
,
#
"author_name": 'test',
"file_path"
:
"test.rules"
,
#
"file_path": "test.rules",
"content"
:
"test"
,
#
"content": "test",
"last_commit_id"
:
"7cfa6c27"
#
"last_commit_id": "7cfa6c27"
}
#
}
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