Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.3.0 instead.
Reason given by maintainers: not tested

AA EVE SDE Factory.

Factory helpers for faster application development with EVE SDE data


Features

  • AllianceAuth Model Factories
    • User
      • Optional UserMainFactory with random permission assigmend
    • EveCharacter
    • EveCorporation
    • EveAlliance
  • Test case base (NoSocketsTestCase, AuthTestCase) in evesde_factory.testcase
  • EVE SDE Model Data Generation (all data models of django-eveonline-sde 1.0.0)
    • Map: Region, Constellation, SolarSystem, Star, StarResource, Stargate, Planet, PlanetResource, Moon, NPCStation, Landmark
    • Types: ItemCategory, ItemGroup, ItemMarketGroup, ItemType, ItemTypeMaterials, TypeList with types, groups and categories
    • Dogma: DogmaAttributeCategory, DogmaUnit, DogmaAttribute, DogmaEffect, TypeDogma, TypeEffect
    • Certificates: Certificate, CertificateSkill, CertificateRecommendedType, Mastery
    • Industry: BlueprintActivity with products and materials
    • Freelance: FreelanceJobSchema with parameters
    • Misc: Archetype, AccountingEntryType, NotificationType, CorporationRole, CorporationRoleGroup with memberships, MetenoxMoonDrill, SkillPlan with milestones and skill requirements, SovereigntyUpgrade

Upcoming

  • Other Utility Tools

Introducing

These factories help you quickly create realistic AllianceAuth and EVE SDE objects in tests without writing repetitive setup code. They are especially useful when you need a valid user, corporation, or item model for a fast and focused test.

from evesde_factory.allianceauth import UserMainFactory
from evesde_factory.eve_sde import ItemTypeFactory
from yourapp.tests import AuthTestCase


class TestEveSdeFactory(AuthTestCase):
    """Test the factories."""

    def test_can_create_app_user_with_custom_permissions(self):
        """Create a user with a custom permission for testing."""
        user = UserMainFactory(permissions__=["yourapp.basic_access"])
        self.assertTrue(user.has_perm("yourapp.basic_access"))

    def test_create_itemtype(self):
        """Create a basic EVE SDE item type for testing."""
        custom_name = "Custom Item Type"
        item_type = ItemTypeFactory(name=custom_name)
        self.assertEqual(item_type.name, custom_name)

Test case base

evesde_factory.testcase provides the shared test case classes SocketAccessError, NoSocketsTestCase and AuthTestCase. AuthTestCase blocks network access and offers self.factory (RequestFactory), self.user, self.superuser and _middleware_process_request(request). The users are built by the class attribute factory_class (default: evesde_factory.allianceauth.UserFactory). An app sets its own factory in <app>/tests/__init__.py:

from evesde_factory.testcase import AuthTestCase as BaseAuthTestCase
from myapp.tests.testdata.app import UserMainFactory


class AuthTestCase(BaseAuthTestCase):
    factory_class = UserMainFactory

Contributing

You want to improve the project? Please ensure you read the Contribution Guidelines

Metadata

Release files for aa-evesde-factory 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aa-evesde-factory 0.2.0
File Size Uploaded Provenance Actions
aa_evesde_factory-0.2.0.tar.gz 41.2 kB With provenance Details for aa_evesde_factory-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aa-evesde-factory 0.2.0
File Interpreter ABI Platform Actions
aa_evesde_factory-0.2.0-py3-none-any.whl Python 3 none any Details for aa_evesde_factory-0.2.0-py3-none-any.whl

Total release size: 86.8 kB

Release files / aa_evesde_factory-0.2.0.tar.gz

Download URL aa_evesde_factory-0.2.0.tar.gz
Size 41.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aefaf52a56ca41b97c5afecfd25ae6862772b1fed7bd1c43a35e6d2cbc23d2bf
BLAKE2b-256 checksum
How to use checksums
922de50d90ea0d3429678eb95f139921632ad1f096caecdb1d68657ab83a9b03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / aa_evesde_factory-0.2.0-py3-none-any.whl

Download URL aa_evesde_factory-0.2.0-py3-none-any.whl
Size 45.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d54d93a3fba1146a57a8c20ee7e655c4da99789767dc56f3eca68dac75019442
BLAKE2b-256 checksum
How to use checksums
60f0c5345c0b1fcb54ef21f17ea8624ccb660624606ab54e88955b2b4d6bd589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for aa-evesde-factory 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aa_evesde_factory-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page