Skip to content

Test - #275

Closed
syntron wants to merge 61 commits into
OpenModelica:masterfrom
syntron:test
Closed

Test#275
syntron wants to merge 61 commits into
OpenModelica:masterfrom
syntron:test

Conversation

@syntron

@syntronsyntron commented Apr 26, 2025

Copy link
Copy Markdown
Contributor

This is just a draft of ideas to further work on ...

... will be splitted into separate PRs if ready ...

@syntron
syntronforce-pushed the test branch 4 times, most recently from 0389dfe to 1712a85CompareApril 26, 2025 21:28
@ondras12345

Copy link
Copy Markdown
Contributor

@syntron Just a note: it is easy to run tests locally:

# git clone ....
cd OMPython
python3 -m venv venv
. ./venv/bin/activate
pip3 install --editable .
pip3 install pytest
pytest

When you push a commit to this pull request, it has to create a new virtual machine, install all dependencies in it, and then run the tests and delete the VM. And it does this for two versions of python and for both linux and Windows. If you run tests locally, you won't have to wait as long for them to finish.

@syntron

Copy link
Copy Markdown
ContributorAuthor

@ondras12345 thanks for the hint; the problem is that I'm limited due to the distribution I use: no package for opensuse available ... thus, I have to run testing on a different computer (or on github)

syntronand others added 24 commits April 29, 2025 18:52
…ases
there are a lot of functions which check the type of the input; this is
done by if ... elif ... - however, invalid input is not catched, i.e. there
is *NO* return value define (would be None) if the input is not matching
any of the if branches
Rule: fail early, fail hard - tell the user that something is wrong!
In this case, the user ask for the solution but could get None (= plain
'return') - this would case hard to track errors later (if verbose==False
and raiseerrors==False)
./OMPython/ModelicaSystem.py:1236:72: E999 SyntaxError: f-string: unmatched '['
@syntron

Copy link
Copy Markdown
ContributorAuthor

this draft PR is (kind of) ready ... I will split it in smaller parts; however, as there are dependencies between the elements some PR will depend on each other ...

@syntron

Copy link
Copy Markdown
ContributorAuthor

Defined via PR #270, #271, #272, #273, #277#278 and #279

@syntronsyntron closed this May 1, 2025
@syntron
syntron deleted the test branch May 1, 2025 15:16
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@syntron@ondras12345