Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hiifong opened this issue Jan 16, 2025 · 2 comments
Open

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

hiifong opened this issue Jan 16, 2025 · 2 comments
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Comments

@hiifong
Copy link
Member

hiifong commented 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

@lunny lunny added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed type/bug labels Jan 16, 2025
@lunny
Copy link
Member

lunny commented 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.

@yp05327
Copy link
Contributor

yp05327 commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea
Projects
None yet
Development

No branches or pull requests

3 participants