catherio / pytest-catherio

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://pytest.org
MIT License
0 stars 0 forks source link

Functions are being called upside down #6

Open catherio opened 2 hours ago

catherio commented 2 hours ago

Pleaze fix1

github-actions[bot] commented 2 hours ago

To help diagnose this issue, please provide a Minimal Reproducible Example (MRE) that shows the problem. Here's what a complete bug report would look like:

# test_example.py
def test_function_order():
    calls = []

    def function1():
        calls.append('function1')

    def function2():
        calls.append('function2')

    # Run your test code here that calls the functions
    function1()
    function2()

    # Show what order you're getting
    print("Actual order:", calls)
    # Show what order you expected
    expected = ['function1', 'function2']
    assert calls == expected

Please provide:

  1. Your actual test code
  2. The code being tested
  3. The actual output you're seeing
  4. The output you expected to see

This will help us understand what you mean by "upside down" and investigate the issue.