from app.history_viewer import history_url

def test_repo_history_url():
    repo_url = "https://github.com/user123/my-project"
    expected_url = "https://github.com/user123/my-project/commits/main"
    assert history_url(repo_url) == expected_url

def test_file_history_url():
    file_url = "https://github.com/user123/my-project/blob/master/my_script.py"
    expected_url = "https://github.com/user123/my-project/commits/master/my_script.py"
    assert history_url(file_url) == expected_url

f3505305ab9ddd7fc18e4453bf82acd2f63a6972
<mask token>

<mask token>


def test_repo_history_url():
    repo_url = 'https://github.com/user123/my-project'
    expected_url = 'https://github.com/user123/my-project/commits/main'
    assert history_url(repo_url) == expected_url


<mask token>

<mask token>


def test_repo_history_url():
    repo_url = 'https://github.com/user123/my-project'
    expected_url = 'https://github.com/user123/my-project/commits/main'
    assert history_url(repo_url) == expected_url


def test_file_history_url():
    file_url = 'https://github.com/user123/my-project/blob/master/my_script.py'
    expected_url = (
        'https://github.com/user123/my-project/commits/master/my_script.py')
    assert history_url(file_url) == expected_url

from app.history_viewer import history_url


def test_repo_history_url():
    repo_url = 'https://github.com/user123/my-project'
    expected_url = 'https://github.com/user123/my-project/commits/main'
    assert history_url(repo_url) == expected_url


def test_file_history_url():
    file_url = 'https://github.com/user123/my-project/blob/master/my_script.py'
    expected_url = (
        'https://github.com/user123/my-project/commits/master/my_script.py')
    assert history_url(file_url) == expected_url

from app.history_viewer import history_url

def test_repo_history_url():
    repo_url = "https://github.com/user123/my-project"
    expected_url = "https://github.com/user123/my-project/commits/main"
    assert history_url(repo_url) == expected_url

def test_file_history_url():
    file_url = "https://github.com/user123/my-project/blob/master/my_script.py"
    expected_url = "https://github.com/user123/my-project/commits/master/my_script.py"
    assert history_url(file_url) == expected_url
