import pytest
from votes.models import Vote


@pytest.mark.django_db
class TestVote:

    def test_update(self, place, username):
        assert not Vote.objects.exists()
        Vote.update(place.id, username)
        assert Vote.objects.exists()

6519c811d0f3988fe070b9449aa0edbf7453c099
<mask token>

<mask token>


@pytest.mark.django_db
class TestVote:
    <mask token>

<mask token>


@pytest.mark.django_db
class TestVote:

    def test_update(self, place, username):
        assert not Vote.objects.exists()
        Vote.update(place.id, username)
        assert Vote.objects.exists()

import pytest
from votes.models import Vote


@pytest.mark.django_db
class TestVote:

    def test_update(self, place, username):
        assert not Vote.objects.exists()
        Vote.update(place.id, username)
        assert Vote.objects.exists()
