Remove demo clip placeholders
This commit is contained in:
1 parent
bb07173857
commit
eda85f91a6
4 files changed
+11
-60
No files matched your search
+3
-3
@@ -168,13 +168,13 @@ pub fn trim_duration(start: Duration, end: Duration) -> Option<Duration> {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::storage::{build_placeholder_clip, LibraryPaths};
|
||||
use crate::storage::{build_test_clip, LibraryPaths};
|
||||
|
||||
#[test]
|
||||
fn filters_by_game_and_tag() {
|
||||
let paths = LibraryPaths::new("root");
|
||||
let mut library = ClipLibrary::new();
|
||||
let mut clip = build_placeholder_clip(
|
||||
let mut clip = build_test_clip(
|
||||
&paths,
|
||||
"clip",
|
||||
"session",
|
||||
@@ -197,7 +197,7 @@ mod tests {
|
||||
fn manifest_contains_clip_rows() {
|
||||
let paths = LibraryPaths::new("root");
|
||||
let mut library = ClipLibrary::new();
|
||||
library.add_clip(build_placeholder_clip(
|
||||
library.add_clip(build_test_clip(
|
||||
&paths,
|
||||
"clip",
|
||||
"session",
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ pub fn clip_path(
|
||||
.join(format!("{}.mp4", sanitize_path_component(clip_id)))
|
||||
}
|
||||
|
||||
pub fn build_placeholder_clip(
|
||||
pub fn build_test_clip(
|
||||
paths: &LibraryPaths,
|
||||
clip_id: &str,
|
||||
session_id: &str,
|
||||
|
||||
Reference in new issue
Block a user