Sha256: 78ea7556aa516024cd1242a5f9a5d5c0ac8c1671406aca6d417e89f4acb970e9
Contents?: true
Size: 1.74 KB
Versions: 1
Compression:
Stored size: 1.74 KB
Contents
# frozen_string_literal: true require 'test_helper' describe 'adventure::flask::0 python-v3_10_1' do Given(:workbench) { } Given { @rollon_loud = false } Given { @rollon_dummies = false } Given { rollon(__dir__) } describe 'directory must contain' do describe 'Dockerfile' do Given(:file) { 'Dockerfile' } Then { assert_file file } end describe 'docker-compose.yml' do Given(:file) { 'docker-compose.yml' } Then { assert_file file } end end describe 'directory must contain' do describe 'mise' do describe 'mise/env' do Then { assert_file 'mise/env/base.env'} end end describe 'docker-compose.yml with' do Given(:file) { 'docker-compose.yml' } Given(:services) { read_yaml(file)[:services] } describe 'correct docker-compose version' do Then { assert_equal read_yaml(file)[:version], '3.9' } end describe 'correct services' do Then { assert_includes services.keys, :redis } And { assert_includes services.keys, :web } end end describe 'requirements.txt' do Given(:file) { 'requirements.txt' } Given { skip } Then { assert_file file, /Flask/ assert_file file, /redis/ } end describe 'app.py' do Given(:file) { 'app.py' } Then { assert_file file } end describe 'Dockerfile' do Given(:file) { 'Dockerfile' } describe 'must have content' do describe 'steps' do Then { assert_file file, /# syntax=docker/ } end describe 'steps' do Then { assert_file file, /\nFROM python:3/ } And { assert_file file, /\nRUN pip install -r requirements.txt/ } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roro-0.3.33 | lib/roro/stacks/unstoppable_developer_styles/okonomi/languages/python/frameworks/flask/test/0/_test.rb |