Much base work started
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
Dan Milne
2025-10-31 14:36:14 +11:00
parent 4a35bf6758
commit 88a906064f
97 changed files with 5333 additions and 2774 deletions

11
test/fixtures/external_ids.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
work: one
source: 1
value: MyString
two:
work: two
source: 1
value: MyString

19
test/fixtures/playback_sessions.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
video: one
user: one
position: 1.5
duration_watched: 1.5
last_watched_at: 2025-10-29 22:39:57
completed: false
play_count: 1
two:
video: two
user: two
position: 1.5
duration_watched: 1.5
last_watched_at: 2025-10-29 22:39:57
completed: false
play_count: 1

23
test/fixtures/storage_locations.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
path: MyString
location_type: 1
writable: false
enabled: false
scan_subdirectories: false
priority: 1
settings: MyText
last_scanned_at: 2025-10-29 22:38:50
two:
name: MyString
path: MyString
location_type: 1
writable: false
enabled: false
scan_subdirectories: false
priority: 1
settings: MyText
last_scanned_at: 2025-10-29 22:38:50

9
test/fixtures/users.yml vendored Normal file
View File

@@ -0,0 +1,9 @@
<% password_digest = BCrypt::Password.create("password") %>
one:
email_address: one@example.com
password_digest: <%= password_digest %>
two:
email_address: two@example.com
password_digest: <%= password_digest %>

11
test/fixtures/video_assets.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
video: one
asset_type: 1
metadata: MyText
two:
video: two
asset_type: 1
metadata: MyText

51
test/fixtures/videos.yml vendored Normal file
View File

@@ -0,0 +1,51 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
work: one
storage_location: one
title: MyString
file_path: MyString
file_hash: MyString
file_size: 1
duration: 1.5
width: 1
height: 1
resolution_label: MyString
video_codec: MyString
audio_codec: MyString
bit_rate: 1
frame_rate: 1.5
format: MyString
has_subtitles: false
version_type: MyString
source_type: 1
source_url: MyString
imported: false
processing_failed: false
error_message: MyText
metadata: MyText
two:
work: two
storage_location: two
title: MyString
file_path: MyString
file_hash: MyString
file_size: 1
duration: 1.5
width: 1
height: 1
resolution_label: MyString
video_codec: MyString
audio_codec: MyString
bit_rate: 1
frame_rate: 1.5
format: MyString
has_subtitles: false
version_type: MyString
source_type: 1
source_url: MyString
imported: false
processing_failed: false
error_message: MyText
metadata: MyText

23
test/fixtures/works.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
title: MyString
year: 1
director: MyString
description: MyText
rating: 9.99
organized: false
poster_path: MyString
backdrop_path: MyString
metadata: MyText
two:
title: MyString
year: 1
director: MyString
description: MyText
rating: 9.99
organized: false
poster_path: MyString
backdrop_path: MyString
metadata: MyText