If for some reason we would like to make sure the order remains the same, we can add the following two lines of code.

import pytest
pytestmark = pytest.mark.random_order(disabled=True)
examples/pytest/test_default_order.py
import pytest
pytestmark = pytest.mark.random_order(disabled=True)

def test_one():
    assert True

def test_two():
    assert True

def test_three():
    assert True