How to use test data from models/fixtures in a local Gitea instance? #14001

Open
opened 2025-11-02 10:59:43 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @hiifong on GitHub (Jan 16, 2025).

Description

No response

Gitea Version

main

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

no related

Database

None

Originally created by @hiifong on GitHub (Jan 16, 2025). ### Description _No response_ ### Gitea Version main ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? no related ### Database None
GiteaMirror added the issue/not-a-bug label 2025-11-02 10:59:43 -06:00
Author
Owner

@lunny commented on GitHub (Jan 16, 2025):

You can find the documentation here https://docs.gitea.com/development/hacking-on-gitea#testing and there are also many examples in the code base.

@lunny commented on GitHub (Jan 16, 2025): You can find the documentation here https://docs.gitea.com/development/hacking-on-gitea#testing and there are also many examples in the code base.
Author
Owner

@yp05327 commented on GitHub (Jan 17, 2025):

Fixtures are fake data, some related data are missing, as it is only used for the test.
It can not be used as the DB data of a real instance.

@yp05327 commented on GitHub (Jan 17, 2025): Fixtures are fake data, some related data are missing, as it is only used for the test. It can not be used as the DB data of a real instance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14001