Implemented the changes to pass the review, implemented consistent variable naming, adjusted unit tests

This commit is contained in:
simwai
2024-05-26 15:54:52 +02:00
parent 9c816045f1
commit 6174a49aa5
3 changed files with 148 additions and 229 deletions

View File

@@ -71,11 +71,6 @@ jobs:
run: |
pytest --random-order --cov=freqtrade --cov=freqtrade_client --cov-config=.coveragerc
- name: Run Pester tests with code coverage
shell: pwsh
run: |
Invoke-Pester -Path tests -EnableExit
- name: Coveralls
if: (runner.os == 'Linux' && matrix.python-version == '3.10' && matrix.os == 'ubuntu-22.04')
env:
@@ -323,6 +318,15 @@ jobs:
run: |
mypy freqtrade scripts tests
- name: Run Pester tests (PowerShell)
run: |
Write-host $PSVersionTable.PSVersion.Major $PSVersionTable.PSRemotingProtocolVersion.Minor
Set-PSRepository psgallery -InstallationPolicy trusted
Install-Module -Name Pester -RequiredVersion 5.3.1 -Confirm:$false -Force
Invoke-Pester -Path "tests"
if ($Error[0].Fullyqualifiederrorid -eq 'PesterAssertionFailed') {exit 1}
shell: powershell
- name: Discord notification
uses: rjstone/discord-webhook-notify@v1
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)