Skip to content

Commit 5cae0db

Browse files
authored
Merge pull request #393 from reportportal/develop
Release
2 parents 4141698 + 7f25011 commit 5cae0db

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ jobs:
3838
- name: Checkout repository
3939
uses: actions/checkout@v4
4040

41+
- name: Generate versions
42+
uses: HardNorth/github-version-generate@v1
43+
with:
44+
version-source: file
45+
version-file: ${{ env.VERSION_FILE }}
46+
version-file-extraction-pattern: ${{ env.VERSION_EXTRACT_PATTERN }}
47+
4148
- name: Set up Python
4249
uses: actions/setup-python@v5
4350
with:
@@ -49,18 +56,11 @@ jobs:
4956
- name: Build package
5057
run: python setup.py sdist bdist_wheel
5158

52-
- name: Publish package
53-
uses: pypa/gh-action-pypi-publish@release/v1
54-
with:
55-
user: ${{ secrets.PYPI_USERNAME }}
56-
password: ${{ secrets.PYPI_PASSWORD }}
57-
58-
- name: Generate versions
59-
uses: HardNorth/github-version-generate@v1
60-
with:
61-
version-source: file
62-
version-file: ${{ env.VERSION_FILE }}
63-
version-file-extraction-pattern: ${{ env.VERSION_EXTRACT_PATTERN }}
59+
# - name: Publish package
60+
# uses: pypa/gh-action-pypi-publish@release/v1
61+
# with:
62+
# user: ${{ secrets.PYPI_USERNAME }}
63+
# password: ${{ secrets.PYPI_PASSWORD }}
6464

6565
- name: Setup git credentials
6666
uses: oleksiyrudenko/gha-git-credentials@v2-latest

tests/integration/test_empty_run.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
from unittest import mock
1717

18-
from delayed_assert import assert_expectations, expect
19-
2018
from tests import REPORT_PORTAL_SERVICE
2119
from tests.helpers import utils
2220

@@ -32,12 +30,10 @@ def test_empty_run(mock_client_init):
3230
assert int(result) == 5, "Exit code should be 5 (no tests)"
3331

3432
mock_client = mock_client_init.return_value
35-
expect(mock_client.start_launch.call_count == 1, '"start_launch" method was not called')
36-
expect(mock_client.finish_launch.call_count == 1, '"finish_launch" method was not called')
37-
assert_expectations()
33+
assert mock_client.start_launch.call_count == 1, '"start_launch" method was not called'
34+
assert mock_client.finish_launch.call_count == 1, '"finish_launch" method was not called'
3835

3936
finish_args = mock_client.finish_launch.call_args_list
40-
expect("status" not in finish_args[0][1], "Launch status should not be defined")
37+
assert "status" not in finish_args[0][1], "Launch status should not be defined"
4138
launch_end_time = finish_args[0][1]["end_time"]
42-
expect(launch_end_time is not None and int(launch_end_time) > 0, "Launch end time is empty")
43-
assert_expectations()
39+
assert launch_end_time is not None and int(launch_end_time) > 0, "Launch end time is empty"

0 commit comments

Comments
 (0)