forked from strictdoc-project/strictdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source coverage: fix case when source file last line is not empty
Closes strictdoc-project#1307
- Loading branch information
Showing
6 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from strictdoc.core.environment import SDocRuntimeEnvironment | ||
|
||
__version__ = "0.0.44a10" | ||
__version__ = "0.0.44a11" | ||
|
||
|
||
environment = SDocRuntimeEnvironment(__file__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...s/integration/commands/export/html/file_traceability/19_no_newline_at_end_of_file/file.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
def hello_world(): | ||
print("hello world") # noqa: T201 | ||
123123 # noqa: W292, B018 |
10 changes: 10 additions & 0 deletions
10
...ntegration/commands/export/html/file_traceability/19_no_newline_at_end_of_file/input.sdoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[DOCUMENT] | ||
TITLE: Hello world doc | ||
|
||
[REQUIREMENT] | ||
UID: REQ-001 | ||
REFS: | ||
- TYPE: File | ||
VALUE: file.py | ||
TITLE: Requirement Title | ||
STATEMENT: Requirement Statement |
11 changes: 11 additions & 0 deletions
11
...ntegration/commands/export/html/file_traceability/19_no_newline_at_end_of_file/test.itest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
RUN: %strictdoc export %S --experimental-enable-file-traceability --output-dir Output | filecheck %s --dump-input=fail | ||
CHECK: Published: Hello world doc | ||
|
||
RUN: %check_exists --file "%S/Output/html/_source_files/file.py.html" | ||
|
||
RUN: %cat %S/Output/html/19_no_newline_at_end_of_file/input.html | filecheck %s --dump-input=fail --check-prefix CHECK-HTML | ||
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-001"> | ||
|
||
RUN: %cat %S/Output/html/_source_files/file.py.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-FILE | ||
CHECK-SOURCE-FILE: <a{{.*}}href="../19_no_newline_at_end_of_file/input.html#1-REQ-001"{{.*}}> | ||
CHECK-SOURCE-FILE: <pre class="highlight"><span class="mi">123123</span> <span class="c1"># noqa: W292, B018</span></pre> |