import factory

from faker import Faker
from faker.providers import geo
from factory import DjangoModelFactory, fuzzy
from django.contrib.gis.geos.point import Point

from ..models import Peak

fake = Faker()
fake.add_provider(geo)


class PeakFactory(DjangoModelFactory):

    class Meta:
        model = Peak
        exclude = ("lat", "lon", "alt", "srid")

    lat = float(fake.latitude())
    lon = float(fake.longitude())
    alt = fuzzy.FuzzyFloat(1000, 5000)
    srid = 4326

    name = fake.name()
    coordinates = factory.LazyAttribute(lambda o: Point(o.lon, o.lat, o.alt, srid=o.srid))

f2e340ab588db9384bc5c0f5ae3c393a7b3f6883
<mask token>


class PeakFactory(DjangoModelFactory):


    class Meta:
        model = Peak
        exclude = 'lat', 'lon', 'alt', 'srid'
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class PeakFactory(DjangoModelFactory):


    class Meta:
        model = Peak
        exclude = 'lat', 'lon', 'alt', 'srid'
    lat = float(fake.latitude())
    lon = float(fake.longitude())
    alt = fuzzy.FuzzyFloat(1000, 5000)
    srid = 4326
    name = fake.name()
    coordinates = factory.LazyAttribute(lambda o: Point(o.lon, o.lat, o.alt,
        srid=o.srid))

<mask token>
fake = Faker()
fake.add_provider(geo)


class PeakFactory(DjangoModelFactory):


    class Meta:
        model = Peak
        exclude = 'lat', 'lon', 'alt', 'srid'
    lat = float(fake.latitude())
    lon = float(fake.longitude())
    alt = fuzzy.FuzzyFloat(1000, 5000)
    srid = 4326
    name = fake.name()
    coordinates = factory.LazyAttribute(lambda o: Point(o.lon, o.lat, o.alt,
        srid=o.srid))

import factory
from faker import Faker
from faker.providers import geo
from factory import DjangoModelFactory, fuzzy
from django.contrib.gis.geos.point import Point
from ..models import Peak
fake = Faker()
fake.add_provider(geo)


class PeakFactory(DjangoModelFactory):


    class Meta:
        model = Peak
        exclude = 'lat', 'lon', 'alt', 'srid'
    lat = float(fake.latitude())
    lon = float(fake.longitude())
    alt = fuzzy.FuzzyFloat(1000, 5000)
    srid = 4326
    name = fake.name()
    coordinates = factory.LazyAttribute(lambda o: Point(o.lon, o.lat, o.alt,
        srid=o.srid))

import factory

from faker import Faker
from faker.providers import geo
from factory import DjangoModelFactory, fuzzy
from django.contrib.gis.geos.point import Point

from ..models import Peak

fake = Faker()
fake.add_provider(geo)


class PeakFactory(DjangoModelFactory):

    class Meta:
        model = Peak
        exclude = ("lat", "lon", "alt", "srid")

    lat = float(fake.latitude())
    lon = float(fake.longitude())
    alt = fuzzy.FuzzyFloat(1000, 5000)
    srid = 4326

    name = fake.name()
    coordinates = factory.LazyAttribute(lambda o: Point(o.lon, o.lat, o.alt, srid=o.srid))
