from random import randint

import cache_me_outside


@cache_me_outside()
def foo():
    return randint()


def test_execution():
    """Validates cache works as expected"""
    assert foo() == foo()

from random import random

from cache_me_outside import cache_me_outside


@cache_me_outside()
def foo():
    return random()


def test_execution():
    """Validates cache works as expected"""
    assert foo() == foo()

Fix broken test