Tests for CLC solid phase thermo state block #283
-
I'm trying to run the tests for CLC solid phase thermo state block. But there isn't any outcome. Can anyone explain what I'm doing wrong in here? ` def test_initialize(solid_prop):
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @ravindurra First of all, why are you writing this as a pytest file and not a normal Python script? Test scripts are generally only used for automated testing of code, and not actually running examples and examining the results. Normally, tests do not give any output unless something fails, so no output is actually the desired result in most cases. Thus, seeing as you are getting no output that generally means the tests are working correctly. To actually run and example and get output, you generally need to write a Python script instead, and specifically display some output from the model. |
Beta Was this translation helpful? Give feedback.
-
@ravindurra, given the time passed, I'm going to mark @andrewlee94's comment as an answer to your question. Please re-open if that's not the case. |
Beta Was this translation helpful? Give feedback.
Hi @ravindurra
First of all, why are you writing this as a pytest file and not a normal Python script? Test scripts are generally only used for automated testing of code, and not actually running examples and examining the results. Normally, tests do not give any output unless something fails, so no output is actually the desired result in most cases. Thus, seeing as you are getting no output that generally means the tests are working correctly.
To actually run and example and get output, you generally need to write a Python script instead, and specifically display some output from the model.