Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rewrite bash tests to python#213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
baliukr wants to merge7 commits intomaster
base:master
Choose a base branch
Loading
fromfeature/MMNS-41-python-tests

Conversation

@baliukr
Copy link

В кач-ве первой итерации тесты Баш были переписаны на Python без написания дополнительных проверок.
Поддерживается параметризация версии Postgres, в следующей итерации так же будет добавлена поддержка параметризации типа и версии ОС

@baliukrbaliukr marked this pull request as ready for reviewJune 19, 2025 05:40
@@ -0,0 +1,5 @@
pytest==8.3.5
docker==7.1.0
zabbix==1.3.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

почему-то данная версия не ищется:
ERROR: Could not find a version that satisfies the requirement zabbix==1.3.1 (from versions: 1.2.0, 1.2.4, 2.0.2)

baliukr reacted with eyes emoji
@@ -0,0 +1,8 @@
from enum import StrEnum
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

класс StrEnum доступен начиная с python3.11, соответственно, необходимо отразить в README, что для запуска тестов необходим python3.11+ и не забыть это в дальнейшем учесть при добавлении запуска данных тестов в github-actions.


subprocess.run(
[
"docker-compose",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

насколько мне известно, оригинальныйdocker-compose перешёл в статус deprecated 5 лет назад и в настоящий момент в качестве замены используется вызов плагина docker-compose-plugin какdocker compose (без тире).

тут два варианта:

  • в рантайме github-actions добавлять алиасalias docker-compose="docker compose"
  • заменить вызов на актуальный без дефиса

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mstyushinmstyushinmstyushin approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@baliukr@mstyushin

[8]ページ先頭

©2009-2025 Movatter.jp